Skip to content Skip to sidebar Skip to footer

Switching Between Frames In Tkinter Instead Of Stacking In Eachother

I have been trying all the many examples in this website about switching windows in tkinter, but all I get is the buttons from the raised frame to be stacked on top, without 'hidin

Solution 1:

You aren't using the "sticky" attribute to force ProdutoView to fill the row and column that it is in.

class ProdutoView(tk.Frame):
    def __init__(self, root, ct):
        ...
        self.grid(row = 0, column = 0, sticky="nsew")

Post a Comment for "Switching Between Frames In Tkinter Instead Of Stacking In Eachother"