def __init__(self, *args, **kwds):
# begin wxGlade: MyDialog.__init__
kwds["style"] = wx.CAPTION | wx.CLOSE_BOX | wx.STAY_ON_TOP
wx.Dialog.__init__(self, *args, **kwds)
self.text_ctrl_passwd = wx.TextCtrl(self, wx.ID_ANY, "", style=wx.TE_PASSWORD)
self.button_cancel = wx.Button(self, wx.ID_ANY, _("Cancel"))
self.button_ok = wx.Button(self, wx.ID_ANY, _("OK"))
self.__set_properties()
self.__do_layout()
self.Bind(wx.EVT_TEXT, self.on_passwod, self.text_ctrl_passwd)
self.Bind(wx.EVT_BUTTON, self.on_button_cancel, self.button_cancel)
self.Bind(wx.EVT_BUTTON, self.on_button_ok, self.button_ok)
# end wxGlade
评论列表
文章目录