如何在python GUI Tkinter中创建大型输入框以设置高度和宽度?

时间:2019-01-08 17:02:11

标签: python tkinter tkinter-entry

我在使用Tkinter GUI导入在python中制作大型输入框时遇到麻烦。

from tkinter import *

class Application(Frame):
    def __init__(self, master):
        super(Application, self).__init__(master)
        self.grid()
        self.create_widgets()

    def create_widgets(self):
        Label(self, text="Enter the message:").grid(row=0, column=1, sticky=W)

        self.message = Entry(self)
        self.message.grid(row=1, column=1, sticky=W)




root = Tk()
root.title("Encrypt / Decrypt tool")

app = Application(root)

root.mainloop()

如何更改输入框的宽度和高度?谢谢!

0 个答案:

没有答案