我在使用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()
如何更改输入框的宽度和高度?谢谢!