def __init__(self, *args, **kwds):
# begin wxGlade: chng_pass.__init__
kwds["style"] = wx.CAPTION | wx.CLOSE_BOX | wx.MINIMIZE_BOX
wx.Dialog.__init__(self, *args, **kwds)
self.label_3 = wx.StaticText(self, -1, "Username")
self.combo_box_1 = wx.ComboBox(self, -1, choices=['Select','admin','teacher'], style=wx.CB_DROPDOWN | wx.CB_SIMPLE | wx.CB_DROPDOWN | wx.CB_READONLY)
self.label_4 = wx.StaticText(self, -1, "Current Password")
self.text_ctrl_1 = wx.TextCtrl(self, -1, "", style=wx.TE_PASSWORD)
self.label_5 = wx.StaticText(self, -1, "New Password")
self.text_ctrl_2 = wx.TextCtrl(self, -1, "", style=wx.TE_PASSWORD)
self.label_6 = wx.StaticText(self, -1, "Confirm New Password")
self.text_ctrl_3 = wx.TextCtrl(self, -1, "", style=wx.TE_PASSWORD)
self.button_1 = wx.Button(self, -1, "Cancel")
self.button_2 = wx.Button(self, -1, "Save")
self.__set_properties()
self.__do_layout()
self.Bind(wx.EVT_COMBOBOX, self.on_combo, self.combo_box_1)
self.Bind(wx.EVT_TEXT, self.on_password_1, self.text_ctrl_1)
self.Bind(wx.EVT_TEXT, self.on_password_2, self.text_ctrl_2)
self.Bind(wx.EVT_TEXT, self.on_password_3, self.text_ctrl_3)
self.Bind(wx.EVT_BUTTON, self.on_cancel, self.button_1)
self.Bind(wx.EVT_BUTTON, self.on_save, self.button_2)
self.UO=user_operations(self)
# end wxGlade
评论列表
文章目录