PageRenderTime 81ms CodeModel.GetById 22ms RepoModel.GetById 4ms app.codeStats 0ms

/examples/mail/Tasks.py

http://pyjamas.googlecode.com/
Python | 14 lines | 12 code | 2 blank | 0 comment | 0 complexity | 1c106bc972f51e4c9d1fc6eecaf0c169 MD5 | raw file
Possible License(s): LGPL-2.1, Apache-2.0
  1. from ui import CheckBox, Composite, VerticalPanel
  2. class Tasks(Composite):
  3. def __init__(self):
  4. panel = VerticalPanel()
  5. panel.add(CheckBox("Get groceries"))
  6. panel.add(CheckBox("Walk the dog"))
  7. panel.add(CheckBox("Start Web 2.0 company"))
  8. panel.add(CheckBox("Write cool app in GWT"))
  9. panel.add(CheckBox("Get funding"))
  10. panel.add(CheckBox("Take a vacation"))
  11. self.initWidget(panel)
  12. self.setStyleName("mail-Tasks")