from customtkinter import * app = CTk() button = CTkButton(app) button.pack(padx = 10, pady = 10) app.mainloop() # In OOP class App(CTk): def __init__(self): super().__init__() self.button = CTkButton(self) self.button.pack(padx = 10, pady = 10) if __name__ == "__main__": app = App() app.mainloop()
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter