# ttkbootstrap **Repository Path**: jiangwei233/ttkbootstrap ## Basic Information - **Project Name**: ttkbootstrap - **Description**: https://github.com/israel-dryer/ttkbootstrap - **Primary Language**: Python - **License**: MIT - **Default Branch**: master - **Homepage**: https://github.com/israel-dryer/ttkbootstrap - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 8 - **Created**: 2022-03-25 - **Last Updated**: 2022-05-24 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # ttkbootstrap A collection of modern flat themes inspired by Bootstrap. Check out the [documentation](https://ttkbootstrap.readthedocs.io/en/latest/) _under development_. ![](https://github.com/israel-dryer/ttkbootstrap/blob/master/docs/assets/themes/themes.gif) ## Installation [Version 1.0](https://ttkbootstrap.readthedocs.io/en/latest/) is currently unpublished; for the moment you must install from source. ```shell python -m pip install git+https://github.com/israel-dryer/ttkbootstrap ``` [Version 0.5](https://ttkbootstrap.readthedocs.io/en/version-0.5/) is currently on PyPI. ```python pip install ttkbootstrap ``` ## Simple Usage The new Version 1.0 API adds style keywords. Instead of using `style="info.Outline.TButton"`, you can use `info-outline` to create an info colored outline button. ```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)`