[Python] Why does my CTkTabview not occupy the whole window?

Discussão em 'Python' iniciado por Stack, Julho 28, 2025.

  1. Stack

    Stack Membro Participativo

    I have an issue where my CTkTabview only takes up ~2/3 of the screen vertically. I can't find why this is the case when looking at my code. Any help is really appreciated.

    Here's my code:

    class App(customtkinter.CTk):
    def __init__(self):
    super().__init__()

    self.grid_columnconfigure(0, weight=1)
    self.grid_rowconfigure(0, weight=1)

    self.homePage = TabView(self)
    self.homePage.grid(column=0, row=0, sticky="nsew")

    class TabView(customtkinter.CTkTabview):
    def __init__(self, master):
    super().__init__(master)
    self.grid_columnconfigure(0, weight=1)
    self.grid_rowconfigure(0, weight=1)

    self.add("Tab")

    self.tab("Tab").grid_columnconfigure(0, weight=1)
    self.tab("Tab").grid_rowconfigure(0, weight=1)
    self.tab("Tab").grid(column=0, row=0, sticky="nsew")


    This code should take up make the tab view occupy the full window but it doesn't.

    Continue reading...

Compartilhe esta Página