diff --git a/my_window.py b/my_window.py index 7137c70..8087bd5 100644 --- a/my_window.py +++ b/my_window.py @@ -1,4 +1,13 @@ -import tkinter +import tkinte +def re( ): + b=e1.get() + c=e2.get() + d=e3.get() + with open ('pp.txt','w',encoding=utf-8)as k: + k.append(b) + k.append(c) + print(b,c) + root=tkinter.Tk() root.title('wechat') root.geometry('480x360+450+150') @@ -6,8 +15,17 @@ e=tkinter.Entry(root,show='*',font=('Ink free',14),bg='lightblue',width=18) e.place(x=140,y=150) e1=tkinter.Entry(root,show='*',font=('Ink free',14),bg='lightblue',width=18) e1.place(x=140,y=100) -e2=tkinter.Entry(root,show='*',font=('Ink free',14),bg='lightblue',width=18) +e2=tkinter.Entry(root,show='',font=('Ink free',14),bg='lightblue',width=18) e2.place(x=140,y=50) labb=tkinter.Label(root,text='嗨嗨嗨,来了啊',font=('宋体',18),fg='black',ba='pink',width=40,height=1) labb.place(x=0,y=0) +lb=tkinter.Label(root,text='ID',font=('宋体',18),fg='black',width=2,height=1) +lb.place(x=100,y=50) +lb=tkinter.Label(root,text='linkword',font=('宋体',18),fg='black',width=8,height=1) +lb.place(x=30,y=100) +lb=tkinter.Label(root,text='mlinkword',font=('宋体',18),fg='black',width=8,height=1) +lb.place(x=30,y=150) +s=tkinter.Button(root,text='Enter',font=('宋体',18),fg='black',bg='lightblue',width=40,height=2,command) +s.place(x=50,y=10) +root.resizable(width=False,height=False) root.mainloop() diff --git a/sa.py b/sa.py index 4bdda5c..d19304d 100644 --- a/sa.py +++ b/sa.py @@ -3,7 +3,10 @@ #tkinter模块 #rool=tkinter.Tk()设窗口 #screen.geometry(widthxheight+x+y)设置窗口大小 -#tkinter.Entry(screen,show=*,font=('wordshape',size),bg='color',width=size)显示文本框 +#tkinter.Entry(screen,show=,font=('wordshape',size),bg='color',width=size)显示文本框 x= ,y= )#place( #tkinter.Label(screen,text'用户名:',font,fg,bg,width,height) -#place(x,y) \ No newline at end of file +#place(x,y) +#root.resizable(width=False,height=False)拉伸 +#tkinter.Button(screen,text,font,fg,bg,width,height,command) +#Entry.get \ No newline at end of file