Skip to content

CTkButton doesn't redraw correctly after maximizing the window #2812

Description

@Alte77

A code example:

import customtkinter as ctk

app = ctk.CTk()

app.geometry("600x600")

bottomButtons = ctk.CTkFrame(app)
bottomButtons.pack(side="bottom",fill="x")

ctk.CTkButton(bottomButtons, text="Right").pack(side="right")
ctk.CTkButton(bottomButtons, text="Left").pack(side="left")

app.mainloop()

When I open the app it looks like this:

Image

But when I maximize the windows it looks like this:

Image

And it fixes himself after I hover over the button. How can I fix this? I have tried many things already. I recreated the code in the normal tkinter libray for python and it works normally.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions