热线电话:13121318867

登录
2019-04-22 阅读量: 552
使用Tkinter的简单注册表(3)

# grid method is used for placing

# the widgets at respective positions

# in table like structure .

name_field.grid(row=1, column=1, ipadx="100")

course_field.grid(row=2, column=1, ipadx="100")

sem_field.grid(row=3, column=1, ipadx="100")

form_no_field.grid(row=4, column=1, ipadx="100")

contact_no_field.grid(row=5, column=1, ipadx="100")

email_id_field.grid(row=6, column=1, ipadx="100")

address_field.grid(row=7, column=1, ipadx="100")

# call excel function

excel()

# create a Submit Button and place into the root window

submit = Button(root, text="Submit", fg="Black",

bg="Red", command=insert)

submit.grid(row=8, column=1)

# start the GUI

root.mainloop()

0.0000
3
关注作者
收藏
评论(0)

发表评论

暂无数据
推荐帖子