![](https://img.shields.io/github/release/israel-dryer/ttkbootstrap.svg)
[![Downloads](https://pepy.tech/badge/ttkbootstrap)](https://pepy.tech/project/ttkbootstrap)
[![Downloads](https://pepy.tech/badge/ttkbootstrap/month)](https://pepy.tech/project/ttkbootstrap)
![](https://img.shields.io/github/issues/israel-dryer/ttkbootstrap.svg)
![](https://img.shields.io/github/issues-closed/israel-dryer/ttkbootstrap.svg)
![](https://img.shields.io/github/license/israel-dryer/ttkbootstrap.svg)
![](https://img.shields.io/github/stars/israel-dryer/ttkbootstrap.svg)
![](https://img.shields.io/github/forks/israel-dryer/ttkbootstrap.svg)
# ttkbootstrap
English | [ä¸æ](README_zh.md)
A supercharged theme extension for tkinter that enables on-demand modern flat style themes inspired by Bootstrap.
ð Check out the [documentation](https://ttkbootstrap.readthedocs.io/en/latest/).
> **1.0+ is a complete rebuild of the library.** If you are using [version 0.5](https://github.com/israel-dryer/ttkbootstrap/tree/version-0.5)
you may run into issues trying to import themes with the themes.json as this
has been removed from 1.0. You can now import and save themes directly using
the ttkcreator.
![](https://raw.githubusercontent.com/israel-dryer/ttkbootstrap/master/docs/assets/themes/themes.gif)
## Features
âï¸ [**Built-in Themes**](https://ttkbootstrap.readthedocs.io/en/latest/themes/)
Over a dozen curated dark and light themes.
âï¸ [**Pre-defined Styles:**](https://ttkbootstrap.readthedocs.io/en/latest/styleguide/)
Loads of beautiful pre-defined widget styles such as **outline** and **round toggle** buttons.
âï¸ [**Simple keyword API:**](https://ttkbootstrap.readthedocs.io/en/latest/gettingstarted/tutorial/#use-themed-widgets)
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:**](https://ttkbootstrap.readthedocs.io/en/latest/api/widgets/dateentry/)
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:**](https://ttkbootstrap.readthedocs.io/en/latest/themes/themecreator/)
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
python -m pip install ttkbootstrap
```
## Simple Usage
Instead of using long, complicated ttk style classes, you can use simple keywords with the "bootstyle" parameter.
```python
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
- **Documentation:** https://ttkbootstrap.readthedocs.io/en/latest/
- **GitHub:** https://github.com/israel-dryer/ttkbootstrap
没有合适的资源?快使用搜索试试~ 我知道了~
ttk-bootstrap-demo,ttkbootstrap样式合集
共494个文件
md:167个
png:156个
py:117个
需积分: 10 5 下载量 65 浏览量
2023-04-12
21:55:26
上传
评论
收藏 7.67MB ZIP 举报
温馨提示
看了视频教程找了半天才找到
资源推荐
资源详情
资源评论
收起资源包目录
ttk-bootstrap-demo,ttkbootstrap样式合集 (494个子文件)
setup_project.bat 284B
Sample1000.csv 68KB
themes.gif 842KB
sizegrip.gif 626KB
tableview.gif 277KB
tooltip.gif 242KB
spinners.gif 199KB
meter-2.gif 107KB
meter.gif 107KB
animated-gif.gif 91KB
scrolledtext.gif 91KB
floodgauge.gif 89KB
floodgauge.gif 89KB
meter.gif 86KB
long-running-determinate.gif 67KB
scale.gif 65KB
long-running-indeterminate.gif 61KB
treeview.gif 52KB
striped-progressbar.gif 51KB
solid-progressbar.gif 42KB
solid-buttons.gif 39KB
solid-toolbuttons.gif 37KB
date-entries.gif 34KB
menubutton.gif 33KB
date-picker-popup.gif 33KB
combos.gif 30KB
radio-toolbutton.gif 30KB
link-buttons.gif 29KB
outline-buttons.gif 29KB
square-scrollbars.gif 28KB
round-scrollbars.gif 28KB
outline-menubutton.gif 27KB
outline-radio-toolbutton.gif 25KB
spinbox.gif 23KB
panedwindow.gif 22KB
outline-toolbuttons.gif 21KB
square-toggles.gif 20KB
radiobutton.gif 19KB
entries.gif 19KB
round-toggles.gif 18KB
checkbuttons.gif 15KB
entry-validation.gif 14KB
.gitignore 216B
code-cooking.jfif 646KB
LICENSE 1KB
filebackup.md 14KB
filebackup.zh.md 14KB
magicmouse.md 14KB
magicmouse.zh.md 14KB
filesearchengine.md 11KB
filesearchengine.zh.md 11KB
definitions.md 10KB
definitions.zh.md 10KB
pccleaner.zh.md 9KB
pccleaner.md 9KB
tutorial.md 6KB
tutorial.zh.md 5KB
calculator.md 5KB
calculator.zh.md 5KB
mediaplayer.md 5KB
mediaplayer.zh.md 5KB
collapsingframe.md 4KB
collapsingframe.zh.md 4KB
README_zh.md 4KB
index.md 4KB
stopwatch.md 4KB
stopwatch.zh.md 4KB
index.zh.md 4KB
README.md 3KB
dataentry.md 3KB
dataentry.zh.md 3KB
equalizer.md 3KB
checkbutton.md 3KB
checkbutton.zh.md 3KB
equalizer.zh.md 3KB
themecreator.md 2KB
index.md 2KB
README.md 2KB
toast.zh.md 2KB
index.zh.md 2KB
themecreator.zh.md 2KB
about.md 2KB
textreader.zh.md 2KB
textreader.md 2KB
about.zh.md 2KB
button.md 2KB
radiobutton.zh.md 2KB
radiobutton.md 2KB
validate-user-input.md 2KB
index.md 2KB
validate-user-input.zh.md 2KB
spinbox.zh.md 2KB
spinbox.md 2KB
button.zh.md 2KB
dateentry.zh.md 2KB
dateentry.md 2KB
gif-animation.md 2KB
combobox.md 2KB
gif-animation.zh.md 2KB
combobox.zh.md 1KB
共 494 条
- 1
- 2
- 3
- 4
- 5
资源评论
qq_38138367
- 粉丝: 3
- 资源: 9
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功