Skip to main content

A supercharged theme extension for tkinter that enables on-demand modern flat style themes inspired by Bootstrap.

Project description

Downloads Downloads

A supercharged theme extension for tkinter that enables on-demand modern flat style themes inspired by Bootstrap.

👀 Check out the documentation.

Features

✔️ Built-in Themes
Over a dozen curated dark and light themes.

✔️ Pre-defined Styles:
Loads of beautiful pre-defined widget styles such as outline and round toggle buttons.

✔️ Simple keyword API:
Apply colors and types using simple keywords such as primary and striped instead of the legacy approach of primary.Striped.Horizontal.TProgressbar. If you've used Bootstrap for web development, you are already familiar with this approach using css classes.

✔️ Lots of new Widgets:
ttkbootstrap comes with several new beautifully designed widgets such as Meter, DateEntry, and Floodgauge. Additionally, dialogs are now themed and fully customizable.

✔️ Built-in Theme Creator:
Want to create your own theme? Easy! ttkboostrap includes a built-in theme creator that enables you to easily build, load, expore, and apply your own custom themes.

Installation

python -m pip install ttkbootstrap

Simple Usage

Instead of using long, complicated ttk style classes, you can use simple keywords with the "bootstyle" parameter.

import ttkbootstrap as ttk
from ttkbootstrap.constants import *

root = ttk.Window(themename="superhero")

b1 = ttk.Button(root, text="Submit", bootstyle="success")
b1.pack(side=LEFT, padx=5, pady=10)

b2 = ttk.Button(root, text="Submit", bootstyle="info-outline")
b2.pack(side=LEFT, padx=5, pady=10)

root.mainloop()

The new keyword API is very flexible. The following examples all produce the same result:

  • bootstyle="info-outline"
  • bootstyle="info outline"
  • bootstyle=("info", "outline")
  • bootstyle=(INFO, OUTLINE)

Links

Project details


Release history Release notifications | RSS feed

This version

1.6.2

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ttkbootstrap-1.6.2.tar.gz (124.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ttkbootstrap-1.6.2-py3-none-any.whl (135.1 kB view details)

Uploaded Python 3

File details

Details for the file ttkbootstrap-1.6.2.tar.gz.

File metadata

  • Download URL: ttkbootstrap-1.6.2.tar.gz
  • Upload date:
  • Size: 124.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.10.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.9

File hashes

Hashes for ttkbootstrap-1.6.2.tar.gz
Algorithm Hash digest
SHA256 311e98c46bb984fc86a1910782e3e924695230549399c7c61845f9159ded916f
MD5 580219f3b0370c5626cb9dba276487b9
BLAKE2b-256 00f152ef219b8d1a5696c39f19cd6be47d5424fef6f6fdbef2ba4ce9cbb4d644

See more details on using hashes here.

File details

Details for the file ttkbootstrap-1.6.2-py3-none-any.whl.

File metadata

  • Download URL: ttkbootstrap-1.6.2-py3-none-any.whl
  • Upload date:
  • Size: 135.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.10.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.9

File hashes

Hashes for ttkbootstrap-1.6.2-py3-none-any.whl
Algorithm Hash digest
SHA256 1f846bd2bad8a068b7ca2f8cb683dab9729a164cf184fb816c4d3ba2706ecf21
MD5 fa33561cea6ec1275f59c89acee12aa8
BLAKE2b-256 064476bf23010eafb5630314bfd155ba39163781162d4cb29f693a6679886ca5

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page