TomSchimansky/CustomTkinter

Strange glitches in nearly all CTK UI elements on Linux.

randompast opened this issue · 3 comments

Any example customtkinter code that I try is glitchy. How do I fix this? I'm running 20.04 Ubuntu, python 3.8.3, current pip, tk, and ctk.

import tkinter
import customtkinter

customtkinter.set_appearance_mode("System")  # Modes: system (default), light, dark
customtkinter.set_default_color_theme("blue")  # Themes: blue (default), dark-blue, green

app = customtkinter.CTk()  # create CTk window like you do with the Tk window

def button_function():
    print("button pressed")

# Use CTkButton instead of tkinter Button
button = customtkinter.CTkButton(master=app, text="CTkButton", command=button_function)
button.place(relx=0.5, rely=0.5, anchor=tkinter.CENTER)

app.mainloop()

image

Duplicate of #1271 upgrade to python 3.10

Using anaconda also caused this problem in the past I think.