def _EnableOrDisableOkBtn(self):
self.Bind(wx.EVT_TEXT_ENTER,self.Onnone,self.pwd)
self.connect.Disable()
usrStr = self.username.GetValue()
pwdStr = self.pwd.GetValue()
if not usrStr=='' and not pwdStr=='':
self.connect.Enable()
self.Bind(wx.EVT_TEXT_ENTER,self.OnConnect,self.pwd)
评论列表
文章目录