Пример #1
0
    def __do_main(self):
        loadCmb.schDiv(self.c_schools)
        loadCmb.days(self.c_day)
        
        dt1 = TextDropTarget(self.lv2) # Make this control a Drop Target
        self.lv2.SetDropTarget(dt1)         # Link to Control

        dt2 = TextDropTarget(self.lv2) # Make this control a Drop Target
        self.lv2.SetDropTarget(dt2)    # Link to Control
Пример #2
0
    def __do_main(self):
        self.defaultColour = self.choice_day.GetBackgroundColour()
        
        loadCmb.schDiv(self.choice_school)
        loadCmb.days(self.choice_day)

        self.choice_semester.Append('Semester 1', 1)
        self.choice_semester.Append('Semester 2', 2)
        
        self.choice_day.SetSelection(0)
        self.choice_school.SetSelection(2)
        self.choice_semester.SetSelection(0)
        self.selectPanel(0)
Пример #3
0
    def __init__(self, parent, id):
        self._init_ctrls(parent)
        
        loadCmb.schDiv(self.c_schools)
        loadCmb.days(self.c_day)
             
        self.gbs_excul = wx.GridBagSizer(hgap=0, vgap=0)
        
        self.scrolledPanel = scrolled.ScrolledPanel(self.p_mid, - 1,  size=wx.DefaultSize) 
        self.scrollPanelSizer = self.gbs_excul
        self.scrolledPanel.SetSizer(self.scrollPanelSizer) 
        self.scrolledPanel.SetupScrolling() 

        self.gbs_mid.Add(self.scrolledPanel, 1, wx.EXPAND) 
        self.p_mid.Layout() 
        
        self.displayData()
Пример #4
0
 def __do_main(self):
     # temp data
     self.schYr    = 2010
     self.semester =    1
     loadCmb.schDiv(self.choice_school)
     
     self.list_ctrl_pool.InsertColumn(0, 'Activity', 120)
     self.choice_semester.Append('1', 1)
     self.choice_semester.Append('2', 2)
     
     loadCmb.days(self.choice_day)
     
     self.panel_selector.Freeze()
     #
     self.choice_school.Select(2)
     self.choice_day.Select(0)
     self.choice_semester.Select(0)
     #
     self.panel_selector.Thaw()
Пример #5
0
 def __do_main(self):
     loadCmb.schDiv(self.choice_schools)
     loadCmb.courseLevels(self.choice_levels)