CustomTkinter
A modern and customizable python UI-library based on Tkinter
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: