In this video we’ll start to look at Modern Gui Design for Tkinter using the CustomTkinter Library.
Custom Tkinter is a great library for creating really stylish, modern looking Tkinter apps fairly easily.
In this video I’ll walk you through setting up CustomTkinter, and we’ll build a very basic starter app with a Button widget.
We’ll also look at all the theme style and color options.
Python Code: custom.py
(Github Code)
from tkinter import *
import customtkinter
# Set the theme and color options
customtkinter.set_appearance_mode("dark") # Modes: system (default), light, dark
customtkinter.set_default_color_theme("green") # Themes: blue (default), dark-blue, green
#root = Tk()
root = customtkinter.CTk()
root.title('Tkinter.com - Custom Tkinter!')
root.iconbitmap('images/codemy.ico')
root.geometry('600x350')
my_button = customtkinter.CTkButton(root, text="Hello World!!!")
my_button.pack(pady=80)
root.mainloop()

Add comment