def Register():
def onsure():
data='01#'+top_account.get()+'#'+top_password.get()+'#'+pass_word_sure.get()+'#'
ADDR = ('202.114.196.97',11560)
udpCliSock.sendto(data, ADDR)
data, ADDR = udpCliSock.recvfrom(1024)
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('????')
#??????
top_account=StringVar()
top_password=StringVar()
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)
#??
评论列表
文章目录