def bt_1_backcall(self): username = self.entry_1.get() password = self.entry_2.get() self.text.insert(END, strftime('[%Y-%m-%d %H:%M:%S]') + ' 连接网络\n') r = connect(username, password) info = LoginGui._html_parser(r.text) self.text.insert(END, '\t来自服务器的回复:' + info + '\n')
def send( self, sock ): """overrides the Packet implementation of send""" Packet.cookie = login.connect( self.username, self.password )
def login(): connect(API)