CustomTkinter icon indicating copy to clipboard operation
CustomTkinter copied to clipboard

Common issue with an ugly line in segmented button when screen scaling in Windows is set to more than 100%

Open MuzzyGH opened this issue 6 months ago • 0 comments

An ugly line shows up when screen scaling in Windows is set to more than 100%

It happens even with the most basic code, so I'm pretty sure it is a common customtkinter issue. I'm just surprised it hasn't been reported yet.

Zrzut ekranu 2024-09-04 083912

Code to recreate (at 125% scaling):

class Root(ctk.CTk):
    def __init__(self, *args, **kwargs):
        super().__init__(*args, **kwargs)

        self.geometry('200x200')

        button = ctk.CTkSegmentedButton(self, values=['Value 1', 'Value 2'])
        button.pack(padx=20, pady=20)

if __name__ == '__main__':
    root = Root()
    root.mainloop()

MuzzyGH avatar Sep 04 '24 07:09 MuzzyGH