def __init__(self, *args, **kwds):
# begin wxGlade: working_days.__init__
kwds["style"] = wx.CAPTION | wx.CLOSE_BOX
wx.Dialog.__init__(self, *args, **kwds)
self.label_1 = wx.StaticText(self, -1, "Year")
self.combo_box_1 = wx.ComboBox(self, -1, choices=[], style=wx.CB_DROPDOWN | wx.CB_DROPDOWN | wx.CB_READONLY)
self.label_5 = wx.StaticText(self, -1, "Total Working Days")
self.label_2 = wx.StaticText(self, -1, " Term I")
self.text_ctrl_1 = wx.TextCtrl(self, -1, "")
self.label_3 = wx.StaticText(self, -1, "Term II")
self.text_ctrl_2 = wx.TextCtrl(self, -1, "")
self.label_4 = wx.StaticText(self, -1, "Final")
self.text_ctrl_3 = wx.TextCtrl(self, -1, "")
self.button_1 = wx.Button(self, -1, "Close")
self.button_2 = wx.Button(self, -1, "Save")
self.button_2.Enabled=False
self.combo_box_1.SetSelection(0)
self.DB=db_operations()
self.load_year()
self.__set_properties()
self.__do_layout()
self.YEAR='Select'
self.Bind(wx.EVT_COMBOBOX, self.OnCombo, self.combo_box_1)
self.Bind(wx.EVT_BUTTON, self.OnCancel, self.button_1)
self.Bind(wx.EVT_BUTTON, self.OnSave, self.button_2)
self.OnLoad()
self.Bind(wx.EVT_CLOSE, self.OnClose)
# end wxGlade
评论列表
文章目录