def authenticate(username , password):
soc.send( str( username.get()) + " " + str(password.get()) )
result = soc.recv(100)
if result == "200": # 200 code refers that login was successful
#saving username
f=open('login_id.txt','w')
f.write( str( username.get() ))
f.close()
login_window.destroy()
thread.start_new_thread(start_cliet_reciever,("ok",))
#os.system('python client_reciever.py')
start(soc)
else:# 201 for wrong
tkMessageBox.showinfo("alert", "Wrong id/password combination !!")
pass
评论列表
文章目录