CustomTkinter
A modern and customizable python UI-library based on Tkinter
![CustomTkinter complex UI example on macOS dark mode](/assets/images/WebsiteBanner-018d79a840d23501efdb4a117620a058.png)
CustomTkinter is a python desktop UI-library based on Tkinter, which provides modern looking and fully customizable widgets. With CustomTkinter you'll get a consistent look across all desktop platforms (Windows, macOS, Linux).
- Simple
- Object Oriented
import customtkinter
def button_callback():
print("button clicked")
app = customtkinter.CTk()
app.geometry("400x150")
button = customtkinter.CTkButton(app, text="my button", command=button_callback)
button.pack(padx=20, pady=20)
app.mainloop()
import customtkinter
class App(customtkinter.CTk):
def __init__(self):
super().__init__()
self.geometry("400x150")
self.button = customtkinter.CTkButton(self, text="my button", command=self.button_callbck)
self.button.pack(padx=20, pady=20)
def button_callbck(self):
print("button clicked")
app = App()
app.mainloop()
With just a few lines of code, you already get a fully working program:
![CustomTkinter simple button example](/assets/images/home_button_example-3d6d35a92f0213e8d4a0f5dbb36b2474.png)