Made a simple grid-based Tkinter Frame subclass today. It's master is a Tk() object.
root = Tk()
root.title('Rep Logger UI')
root.geometry('500x500')
mother = rep_ui(master=root)
mother.mainloop()
All I wanted to do was divide the rep_ui window into two frames ( red, blue ) of equal width, and then put a few widgets in each.
But I'm not doing something right. The red+blue frames don't completely fill the window. Either they're not fully-filling the rep_ui class, or the rep_ui class isn't expanding properly inside its master (root) ?
Also, the blue and red frames are of different width, even though I column-configured them with the same weight-s.
def __init__(self, master=None):
Frame.__init__(self, master)
"""to make the rep_ui frame expand into the entire OS window."""
self.master.rowconfigure( 0, weight = 1 ) # outer-bounds' row[0] weight set
self.master.columnconfigure( 0, weight = 1 ) # outer-bounds' col[0] weight set
self.grid(sticky=W+E+N+S) # EWNS-sticky mode set
self.columnconfigure( 0, weight = 1 ) # column[0] weight set
self.columnconfigure( 1, weight = 1 ) # column[1] weight set
self.rowconfigure( 0, weight = 1 ) # row[0] weight set
self.rowconfigure( 1, weight = 1 ) # row[1] weight set
""" left and right frames"""
self.fl = Frame(self, bg="red") # RED Frame ( left )
self.fr = Frame(self, bg="blue") # BLUE Frame ( right )
self.fl.grid( row=0, column=0, sticky=N+S+W+E) # .grid() RED one
self.fr.grid row=0, column=1, sticky=N+S+W+E) # .grid() BLUE one
Here is a picture of the problem I'm describing: 

