client.py 文件源码

python
阅读 22 收藏 0 点赞 0 评论 0

项目:dikastis 作者: dikastis-judge 项目源码 文件源码
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
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号