Feb-03-2018, 03:13 PM
The grid, pack, and place methods of every Tkinter widget operate in-place and always return None. This means that you cannot call them on the same line as you create a widget. Instead, they should be called on the line below:
self.ratio1 = Entry(self, width=30) self.ratio1.pack(side=TOP, padx=10, pady=10)
Recommended Tutorials: