[英]How do I position buttons or text boxes or labels using tkinter?
I am trying to make a simple GUI program with python 3 using tkinter
. 我正在尝试使用
tkinter
用python 3创建一个简单的GUI程序。 I need help moving labels, buttons, or entry boxes to different positions on the GUI. 我需要帮助将标签,按钮或输入框移动到GUI上的不同位置。
lbl_title = tkinter.Label(root, text="Welcome to the Guessing Game!", bg="white")
lbl_title.pack()
Try grid 尝试网格
root = Tk()
l1 = Label(root, text="peace")
l1.grid(row=0, column=1)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.