PageRenderTime 13ms CodeModel.GetById 8ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

/examples/dynamictable/DynaTable.py

http://pyjamas.googlecode.com/
Python | 16 lines | 13 code | 3 blank | 0 comment | 2 complexity | c511247629b07be399ae0705e737d9b2 MD5 | raw file
 1from ui import RootPanel
 2from DayFilterWidget import DayFilterWidget
 3from SchoolCalendarWidget import SchoolCalendarWidget
 4
 5class DynaTable:
 6
 7    def onModuleLoad(self):
 8        slot = RootPanel("calendar")
 9        if slot:
10            calendar = SchoolCalendarWidget(15)
11            slot.add(calendar)
12            
13            slot = RootPanel("days")
14            if slot:
15                filterWidget = DayFilterWidget(calendar)
16                slot.add(filterWidget)