def __init__(self, *args, **kwds):
# begin wxGlade: add_academic_year.__init__
kwds["style"] = wx.DEFAULT_DIALOG_STYLE
wx.Dialog.__init__(self, *args, **kwds)
self.label_3 = wx.StaticText(self, wx.ID_ANY, ("Academic Year"))
self.text_ctrl_1 = wx.TextCtrl(self, wx.ID_ANY, "")
self.label_4 = wx.StaticText(self, wx.ID_ANY, ("-"))
self.text_ctrl_2 = wx.TextCtrl(self, wx.ID_ANY, "")
self.button_close = wx.Button(self, wx.ID_ANY, ("Close"))
self.button_add = wx.Button(self, wx.ID_ANY, ("Add"))
self.__set_properties()
self.__do_layout()
self.Bind(wx.EVT_TEXT, self.on_enter, self.text_ctrl_1)
self.Bind(wx.EVT_BUTTON, self.on_close, self.button_close)
self.Bind(wx.EVT_BUTTON, self.on_add, self.button_add)
self.text_ctrl_1.Bind(wx.EVT_KEY_DOWN, self.handle_keypress)
self.NEW_YEAR=''
# end wxGlade
评论列表
文章目录