8/9/2023 0 Comments Windows 11 modern skin packIt's possible to put an image on a CTkButton. | complex_example.py on macOS with system appearance mode change, user-scaling change and standard 'blue' theme Button with images Version to get a dark window header (Tcl/Tk >= 8.6.9 required): complex_example_mode_switch_scaling_macOS.mp4 On macOS you either need python3.10 or higher or the anaconda python | complex_example.py on Windows 11 with system appearance mode change and standard 'blue' theme More Examples and Showcase Appearance mode change and scaling changeĬustomTkinter can adapt to the Windows 10/11 light or dark mode: complex_example_mode_switch_Windows.mp4 You can find further information on the appearance mode, scaling, themes and all widgets. Which results in the following window on macOS:Ĭan find more example programs and in the Documentation place( relx = 0.5, rely = 0.5, anchor = customtkinter. CTkButton( master = app, text = "CTkButton", command = button_function)īutton. # Use CTkButton instead of tkinter Button button = customtkinter. CTk() # create CTk window like you do with the Tk window app. set_default_color_theme( "blue") # Themes: blue (default), dark-blue, green app = customtkinter. set_appearance_mode( "System") # Modes: system (default), light, dark customtkinter.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |