Reputation: 43
This is my code to resize a tkinter entry, but it doesnt work. Can someone please help me figure it out? It doesn't resize even though I use columnconfigure and sticky. My code is below
self.ScriptEntry = tk.Entry(self,textvariable=self.FileText)
self.ScriptEntry.grid(column=2,row=0, columnspan=2, sticky = W+E)
self.ScriptEntry.columnconfigure(2, weight = 1)
Upvotes: 0
Views: 230
Reputation: 386334
columnconfigure
and rowconfigure
must be called on the widget that contains the entry. In this case that would be self.columnconfigure(2, weight=1)
.
Upvotes: 1