python欢迎界面_在Python中使用GUI创建欢迎页面界面

####### Welcome Page Interface med lille skærm #######

import tkinter

#import TkFileDialog

#import tkMessageBox

from tkinter import *

def main ():

root = Tk()

root.title("Welcome Page Interface")

root.minsize(width = 1370, height = 700)

root.maxsize(width = 1370, height = 700)

button2 = Button(root, text = "Textbox", width = 150, height = 10)

button2.pack(side = TOP, padx = 1, pady = 50 )

button2.pack()

button3 = Button(root, text = "Input textbox", width = 20, height = 2)

button3.pack(side = TOP, padx = 10, pady = 100 )

button3.pack()

button4 = Button(root, text = "Input textbox #Password#", width = 30, height = 500)

button4.pack(side = BOTTOM, padx = 10, pady = 140 )

button4.pack()

button5 = Button(root, text = "Continue to the next page", width = 30, height = 1)

button5.pack(side = BOTTOM, padx = 10, pady= 110 )

button5.pack()

root.mainloop()

if __name__ == "__main__":

main()

###############################

#from tkinter import *

#root = Tk()

#Label(root, text="First Name").grid(row=0, sticky=W, padx=4)

#Entry(root).grid(row=0, column=1, sticky=E, pady=4)

#Label(root, text="Last Name").grid(row=1, sticky=W, padx=4)

#Entry(root).grid(row=1, column=1, sticky=E, pady=4)

#Button(root, text="Submit").grid(row=3)

#root.mainloop()

###############################

#import tkinter

#import TkFileDialog

#import tkMessageBox

#from tkinter import *

#def main ():

# root = Tk()

# root.title("Welcome Page Interface")

# root.minsize(width = 1370, height = 700)

# root.maxsize(width = 1370, height = 700)

# button2 = Button(root, text="Textbox", width=150, height=10)

# button2.pack(side = TOP, padx = 1, pady = 50 )

# button2.pack()

# Label(root, text="").grid(row=0, sticky=W, padx=4)

# Label(root, text="B").grid(row=4, sticky=E, padx=8)

# Entry(root).grid(row=0, column=3, sticky=E, pady=5)

# Label(root, text="H").grid(row=4, sticky=W, padx=5)

# Entry(root).grid(row=0, column=2, sticky=E, pady=5)

##########

# Label(root, text="First Name").grid(row=0, sticky=W, padx=4)

# Entry(root).grid(row=0, column=1, sticky=E, pady=4)

# Label(root, text="Last Name").grid(row=7, sticky=W, padx=5)

# Entry(root).grid(row=0, column=0, sticky=E, pady=4)

# Button(root, text="Submit").grid(row=3)

# root.mainloop()

#if __name__ == "__main__":

# main()

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值