Example #1
0
 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')
Example #2
0
 def send( self, sock ):
     """overrides the Packet implementation of send"""
     Packet.cookie = login.connect( self.username, self.password )
Example #3
0
def login():
	
	connect(API)