Skip to main content

A fork of ttkbootstrap for personal use

Project description

NOTICE

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


Download files

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

Source Distribution

Built Distribution

File details

Details for the file ttkbootstrap-fork-laggykiller-1.5.1.post1.tar.gz.

File metadata

File hashes

Hashes for ttkbootstrap-fork-laggykiller-1.5.1.post1.tar.gz
Algorithm Hash digest
SHA256 d096452e19ee866124d6ea480eb22e10ad00bc4bc310ed43922e459db429a89a
MD5 b0204e16995fe3a951c156d357f8f805
BLAKE2b-256 178974e79cc2f8e5c4d4f133768a416be85dc27912748bde1f538839697721d0

See more details on using hashes here.

File details

Details for the file ttkbootstrap_fork_laggykiller-1.5.1.post1-py3-none-any.whl.

File metadata

File hashes

Hashes for ttkbootstrap_fork_laggykiller-1.5.1.post1-py3-none-any.whl
Algorithm Hash digest
SHA256 0e6bd1407288227b30e291b78aa449a25c5b87d16e6c04de7b1086aefbd31a71
MD5 908a307a701e0005f8f50c3a8a7f8b34
BLAKE2b-256 8b5d99333b88f6f21e3b43a3a1ead747da8438fb5df4ecb44430d8f13c490315

See more details on using hashes here.

Supported by

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