Commit 504389d3 by BellCodeEditor

save project

parent 7bf63b30
Showing with 4 additions and 2 deletions
import tkinter
# 建立窗口对象
def xiaozhu():
print("小猪:别按了")
zhu = tkinter.Tk()
zhu.title("注册") # 设置窗口标题
zhu.geometry("400x320+500+300") # 设置窗口大小
......@@ -21,7 +23,7 @@ zhu5 = tkinter.Label(zhu, text='确认密码', font=('宋体', 15),fg="black")
zhu5.place(x=70,y=230)
zhu4 = tkinter.Label(zhu, text='亲,被写错了\(^v^)/', font=('宋体', 15),fg="white",width=40, height=2,bg="lightblue")
zhu4.place(x=0,y=40)
zhu5 = tkinter.Label(zhu, text='登 录', font=('宋体', 20),fg="white",width=10, height=1,bg="lightblue")
zhu5.place(x=130,y=270)
zhu5 = tkinter.Button(zhu, text='登 录', font=('宋体', 20),fg="white",width=10, height=1,bg="lightblue")
zhu5.place(x=130,y=265)
# 保持窗口监听,进入消息循环
zhu.mainloop()
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