????.py 文件源码

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

项目:PythonQQ 作者: zhang0chao0 项目源码 文件源码
def Register():
    def onsure():
            data='01#'+top_account.get()+'#'+top_password.get()+'#'+pass_word_sure.get()+'#'
            #ADDR=("localhost",11567)
            ADDR = ('202.114.196.97',11560)
            udpCliSock.sendto(data, ADDR)
            data, ADDR = udpCliSock.recvfrom(1024)
            #udpCliSock.close()
            if data=='01:01':
                tkMessageBox.showinfo('??','?????')
            elif data=='01:02':
                tkMessageBox.showinfo('????','???????')
            elif data=='01:03':
                tkMessageBox.showinfo('????','??????')
            else:
                tkMessageBox.showinfo('????','??????')
            top.destroy()
    #???
    top=Toplevel()
    top.title('????')
    Label(top,text='???',width=8).grid(row=0,column=0)
    Entry(top,textvariable=top_account).grid(row=0,column=1)
    Label(top,text='???',width=8).grid(row=1,column=0)
    Entry(top,textvariable=top_password,show='*').grid(row=1,column=1)
    Label(top,text='?????',width=8).grid(row=2,column=0)
    pass_word_sure=StringVar()
    Entry(top,textvariable=pass_word_sure,show='*').grid(row=2,column=1)
    Button(top,text='????',width=8,command=onsure).grid(row=3)


#??
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号