Fixed a corner case where parsing the response with dottedJSON (i.e., when not using...
[pyrtm.git] / app.py
blobc6775b58d87f447717668c695d8ac813d48eed74
1 # simple app
3 from rtm import createRTM
5 from Tkinter import *
7 def createApp(rtm):
8 rspTasks = rtm.tasks.getList(filter='dueWithin:"1 week of today"')
9 tasks = [t.name for t in rspTasks.tasks.list.taskseries]
11 root = Tk()
12 root.wm_attributes('-topmost', 1)
13 root.wm_attributes('-alpha', 0.5)
14 l = Label(text='\n'.join(tasks))
15 l.pack()
16 l.mainloop()
18 def test(apiKey, secret, token=None):
19 rtm = createRTM(apiKey, secret, token)
20 createApp(rtm)