Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # s60_shopping_list.py
- import appuifw
- import messaging
- items = u'''
- blueberry yogurt
- bananas
- tangerines
- apple juice
- orange juice
- peach juice
- french vanilla milkshake
- lemonade @$1.00
- smoothie - oasis : b,c,p
- breath mints - excel : polar ice
- vitamin a
- thiamine (b1)
- riboflavin (b2)
- niacin (b3)
- pantothenic acid (b5)
- vitamin b6
- biotin (b7)
- folic acid (b9)
- vitamin b12
- vitamin c
- vitamin d
- vitamin e
- vitamin k
- foamy handsoap
- facial wash
- bodywash - 24h protection
- deorderant - 24h protection
- toothpaste - colgate
- dishwashing liquid
- aluminum foil
- plastic cups
- all-purpose cleaner
- scrub pads
- bandages
- resealable bags
- cling wrap
- toothpick flosses
- mouthwash - scope
- skincare lotion
- massaging oil
- scotch tape
- duct tape
- garbage bags
- laundry soap
- air freshener
- toilet paper
- toilet puck
- disenfectant
- q-tips
- paper towels
- kleenex
- body towels
- bleach
- socks
- underwear
- dress shoes
- running shoes
- winter boots
- brita water filter
- flavor crystals
- tea
- apples
- salmon
- tuna
- turkey
- whole-grain bread
- cereal
- oatmeal
- pasta
- milk
- '''.title().split('\n')[1:-1]
- choices = appuifw.multi_selection_list(items,'checkbox',1)
- if choices:
- items_to_buy = []
- for x in choices:
- items_to_buy.append(items[x])
- shoppinglist = "\nShopping List:\n\n"+"\n\n".join(items_to_buy)
- print "Sending SMS... " + shoppinglist
- appuifw.note(u"Sending SMS")
- messaging.sms_send("+15551234567", shoppinglist)
- appuifw.note(u"Shopping List Sent")
- else:
- appuifw.note(u"No Item Has Been Selected")
- print "Shopping List Cancelled"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement