All Projects → TomSchimansky → CustomTkinter

TomSchimansky / CustomTkinter

Licence: CC0-1.0 license
A modern and customizable python UI-library based on Tkinter

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to CustomTkinter

PySimpleGUI
Launched in 2018. It's 2022 and PySimpleGUI is actively developed & supported. Create complex windows simply. Supports tkinter, Qt, WxPython, Remi (in browser). Create GUI applications trivially with a full set of widgets. Multi-Window applications are also simple. 3.4 to 3.11 supported. 325+ Demo programs & Cookbook for rapid start. Extensive d…
Stars: ✭ 10,846 (+567.04%)
Mutual labels:  tkinter, user-interface, tkinter-gui
Light-Switch
Easily switch from light to dark theme, or the other way around, in Windows 10/11.
Stars: ✭ 25 (-98.46%)
Mutual labels:  dark-theme, dark-mode, windows-11
Python-Course
🐍 This is the most complete course in Python, completely practical and all the lessons are explained with examples, so that they can be easily understood. 🍫
Stars: ✭ 18 (-98.89%)
Mutual labels:  dark-theme, tkinter
Rise-Media-Player
One media player for everything you own or stream; whether it's music or videos, online or offline Rise Media Player does it all. And it's beautiful and native with the latest version of WinUI.
Stars: ✭ 600 (-63.1%)
Mutual labels:  ui-design, windows-11
Wiggles-iOS
Beautiful Puppy adoption app built to Demonstrate the SwiftUI and MVVM Architecture
Stars: ✭ 174 (-89.3%)
Mutual labels:  ui-design, dark-theme
222
222. Dark mode. Everywhere. 222 bytes of js to make any website dark
Stars: ✭ 58 (-96.43%)
Mutual labels:  dark-theme, dark-mode
RAScrollablePickerView
Lightweight HSB color picker view.
Stars: ✭ 39 (-97.6%)
Mutual labels:  ui-design, custom
Raspberry-Pi-Dashboard
Web-based dashboard interface to inspect Raspberry Pi hardware and software with no extra software required.
Stars: ✭ 131 (-91.94%)
Mutual labels:  dark-theme, dark-mode
tukaan
A modern, cross platform Python toolkit for creating desktop GUI applications. Contributors are welcome!
Stars: ✭ 97 (-94.03%)
Mutual labels:  modern, tkinter
bootstrap-darkmode
Stylesheet and scripts for implementing dark mode with Bootstrap 4
Stars: ✭ 38 (-97.66%)
Mutual labels:  dark-theme, dark-mode
dark-mode
Dark Mode - Chrome extension. Relax your eyes at night and day.
Stars: ✭ 63 (-96.13%)
Mutual labels:  dark-theme, dark-mode
ttkbootstrap
A supercharged theme extension for tkinter that enables on-demand modern flat style themes inspired by Bootstrap.
Stars: ✭ 512 (-68.51%)
Mutual labels:  tkinter, tkinter-gui
Nozha-rtl-Dashboard
Nozha is a rtl / ltr Admin Panel with Dark Mode
Stars: ✭ 31 (-98.09%)
Mutual labels:  dark-theme, dark-mode
Tkinter-Designer
An easy and fast way to create a Python GUI 🐍
Stars: ✭ 4,697 (+188.87%)
Mutual labels:  tkinter, tkinter-gui
mint-ui
Design System | React UI components for web
Stars: ✭ 17 (-98.95%)
Mutual labels:  ui-design, modern
VS2019-Dark-Npp
Visual Studio 2019 Dark Theme for Notepad++
Stars: ✭ 146 (-91.02%)
Mutual labels:  dark-theme, dark-mode
Turn-Off-the-Lights-Firefox-extension-WebExtensions
Firefox extension (WebExtensions)
Stars: ✭ 19 (-98.83%)
Mutual labels:  dark-theme, dark-mode
dark-mode-example
Simple and fun dark-mode detection. JavaScript with a user mode toggle.
Stars: ✭ 27 (-98.34%)
Mutual labels:  dark-theme, dark-mode
TKinterDesigner
TKinterDesigner is a tool software to develop the Python User Interface for Python programmer.
Stars: ✭ 663 (-59.23%)
Mutual labels:  tkinter, tkinter-gui
Form-Labeller
Use this tool to label forms, bounding boxes, and assigning types to annotations
Stars: ✭ 17 (-98.95%)
Mutual labels:  tkinter, tkinter-gui

PyPI PyPI - Downloads PyPI - License Total lines

CustomTkinter UI-Library

| complex_example.py on Windows 11 with dark mode and 'dark-blue' theme

| complex_example.py on macOS in light mode and standard 'blue' theme

CustomTkinter is a python UI-library based on Tkinter, which provides new, modern and fully customizable widgets. They are created and used like normal Tkinter widgets and can also be used in combination with normal Tkinter elements. The widgets and the window colors either adapt to the system appearance or the manually set mode ('light', 'dark'), and all CustomTkinter widgets and windows support HighDPI scaling (Windows, macOS). With CustomTkinter you'll get a consistent and modern look across all desktop platforms (Windows, macOS, Linux).

Installation

Install the module with pip:

pip3 install customtkinter

Update existing installation: pip3 install customtkinter --upgrade
(update as often as possible because this library is under active development)

Documentation

A detailed documentation can be found in the Wiki Tab here: Documentation.

Example Program

To test customtkinter you can try this simple example with only a single button:

import tkinter
import customtkinter

customtkinter.set_appearance_mode("System")  # Modes: system (default), light, dark
customtkinter.set_default_color_theme("blue")  # Themes: blue (default), dark-blue, green

app = customtkinter.CTk()  # create CTk window like you do with the Tk window
app.geometry("400x240")

def button_function():
    print("button pressed")

# Use CTkButton instead of tkinter Button
button = customtkinter.CTkButton(master=app, text="CTkButton", command=button_function)
button.place(relx=0.5, rely=0.5, anchor=tkinter.CENTER)

app.mainloop()

which gives the following (macOS dark mode on):

In the examples folder, you can find more example programs and in the Documentation you can find further information on the appearance mode, the themes and all widgets.

More Examples and Showcase

Appearance mode change

On Windows 10/11 you get a dark window header, which changes with set appearance mode or the system, when you use customtkinter.CTk() to create the window, and it works with all python versions:

| complex_example.py on Windows 11 with system mode change and standard 'blue' theme

On macOS however you either need python3.10 or higher or the anaconda python version to get a dark window header at all (Tcl/Tk >= 8.6.9 required).

| complex_example.py on macOS with system mode change and standard 'blue' theme

Button with images

It's possible to put an image on a CTkButton. You just have to pass a PhotoImage object to the CTkButton with the image argument. If you want no text at all you have to set text="" or you specify how to position the text and image at once with the compound option:

| example_button_images.py on macOS

Integration of TkinterMapView widget

In the following example I used a TkinterMapView which integrates well with a CustomTkinter program. It's a tile based map widget which displays OpenStreetMap or other tile based maps:

| examples/map_with_customtkinter.py from TkinterMapView repository on macOS

You can find the TkinterMapView library and the example program here: https://github.com/TomSchimansky/TkinterMapView

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].