Code: Select all
class Org:
def __init__(self, master):
self.master = master
self.mainframe = tkinter.Frame(self.master, bg = "white")
self.mainframe.pack(fill = tkinter.BOTH, expand = True)
# more code - calling functions
def build_grid(self):
self.mainframe.columnconfigure(0, weight = 1)
self.mainframe.rowconfigure(0, weight = 0)
self.mainframe.rowconfigure(1, weight = 1)
self.mainframe.rowconfigure(2, weight = 0)
# more code - defining functions
Thanks,
Lea