Commit c24a87ce by BellCodeEditor

save project

parent 857f0174
Showing with 26 additions and 5 deletions
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=tkinter.Tk()
root.title('wechat') root.title('wechat')
root.geometry('480x360+450+150') root.geometry('480x360+450+150')
...@@ -6,8 +15,17 @@ e=tkinter.Entry(root,show='*',font=('Ink free',14),bg='lightblue',width=18) ...@@ -6,8 +15,17 @@ e=tkinter.Entry(root,show='*',font=('Ink free',14),bg='lightblue',width=18)
e.place(x=140,y=150) e.place(x=140,y=150)
e1=tkinter.Entry(root,show='*',font=('Ink free',14),bg='lightblue',width=18) e1=tkinter.Entry(root,show='*',font=('Ink free',14),bg='lightblue',width=18)
e1.place(x=140,y=100) 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) e2.place(x=140,y=50)
labb=tkinter.Label(root,text='嗨嗨嗨,来了啊',font=('宋体',18),fg='black',ba='pink',width=40,height=1) labb=tkinter.Label(root,text='嗨嗨嗨,来了啊',font=('宋体',18),fg='black',ba='pink',width=40,height=1)
labb.place(x=0,y=0) 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() root.mainloop()
...@@ -3,7 +3,10 @@ ...@@ -3,7 +3,10 @@
#tkinter模块 #tkinter模块
#rool=tkinter.Tk()设窗口 #rool=tkinter.Tk()设窗口
#screen.geometry(widthxheight+x+y)设置窗口大小 #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( x= ,y= )#place(
#tkinter.Label(screen,text'用户名:',font,fg,bg,width,height) #tkinter.Label(screen,text'用户名:',font,fg,bg,width,height)
#place(x,y) #place(x,y)
\ No newline at end of file #root.resizable(width=False,height=False)拉伸
#tkinter.Button(screen,text,font,fg,bg,width,height,command)
#Entry.get
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment