def __init__(self, *args, **kwds):
# Constructor
kwds["style"] = wx.CAPTION|wx.CLOSE_BOX|wx.MINIMIZE_BOX
wx.Dialog.__init__(self, *args, **kwds)
self.label_1 = wx.StaticText(self, -1, "Year", style=wx.ALIGN_RIGHT|wx.ALIGN_CENTRE)
self.combo_box_1 = wx.ComboBox(self, -1, choices=[], style=wx.CB_DROPDOWN|wx.CB_DROPDOWN|wx.CB_READONLY)
self.label_2 = wx.StaticText(self, -1, "Standard", style=wx.ALIGN_RIGHT|wx.ALIGN_CENTRE)
self.combo_box_2 = wx.ComboBox(self, -1, choices=[ 'All',"8", "9"], style=wx.CB_DROPDOWN|wx.CB_DROPDOWN|wx.CB_READONLY)
#self.label_3 = wx.StaticText(self, -1, "Division", style=wx.ALIGN_CENTRE)
#self.combo_box_3 = wx.ComboBox(self, -1, choices=['All'], style=wx.CB_DROPDOWN|wx.CB_DROPDOWN|wx.CB_READONLY)
#self.label_4 = wx.StaticText(self, -1, "Term", style=wx.ALIGN_CENTRE)
#self.button_3 = wx.Button(self, -1, "Import File")
#self.combo_box_4 = wx.ComboBox(self, -1, choices=[ "Term 1", "Term 2", "Annual"], style=wx.CB_DROPDOWN|wx.CB_DROPDOWN|wx.CB_READONLY)
self.button_2 = wx.Button(self, -1, "Proceed")
self.button_1 = wx.Button(self, -1, "Close")
#self.SetMenu()
self.__set_properties()
self.__do_layout()
self.Bind(wx.EVT_COMBOBOX, self.on_year, self.combo_box_1)
self.Bind(wx.EVT_COMBOBOX, self.on_class, self.combo_box_2)
#self.Bind(wx.EVT_COMBOBOX, self.on_division, self.combo_box_3)
self.Bind(wx.EVT_BUTTON, self.ok_clicked, self.button_2)
self.Bind(wx.EVT_BUTTON,self.on_close, self.button_1)
#self.CalcSheet=SpreadSheet(self)
self.YEAR=''
self.DIVS=[]
self.DB=db_operations()
self.load_year()
评论列表
文章目录