From f6362acb3d8a3a615d6ac812884679cc0203da09 Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Wed, 10 May 2023 05:56:34 +0000 Subject: automatic import of python-ttkbootstrap --- .gitignore | 1 + python-ttkbootstrap.spec | 271 +++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 273 insertions(+) create mode 100644 python-ttkbootstrap.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore index e69de29..5667ae1 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/ttkbootstrap-1.10.1.tar.gz diff --git a/python-ttkbootstrap.spec b/python-ttkbootstrap.spec new file mode 100644 index 0000000..7d6f6c0 --- /dev/null +++ b/python-ttkbootstrap.spec @@ -0,0 +1,271 @@ +%global _empty_manifest_terminate_build 0 +Name: python-ttkbootstrap +Version: 1.10.1 +Release: 1 +Summary: A supercharged theme extension for tkinter that enables on-demand modern flat style themes inspired by Bootstrap. +License: MIT License +URL: https://github.com/israel-dryer/ttkbootstrap +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/e7/9e/22845f8e68415f4246342f3eccc5939991445098e8c1c0cf60c459755d22/ttkbootstrap-1.10.1.tar.gz +BuildArch: noarch + +Requires: python3-pillow + +%description + +![](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) + +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/). + +![](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 + + +%package -n python3-ttkbootstrap +Summary: A supercharged theme extension for tkinter that enables on-demand modern flat style themes inspired by Bootstrap. +Provides: python-ttkbootstrap +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-ttkbootstrap + +![](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) + +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/). + +![](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 + + +%package help +Summary: Development documents and examples for ttkbootstrap +Provides: python3-ttkbootstrap-doc +%description help + +![](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) + +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/). + +![](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 + + +%prep +%autosetup -n ttkbootstrap-1.10.1 + +%build +%py3_build + +%install +%py3_install +install -d -m755 %{buildroot}/%{_pkgdocdir} +if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi +if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi +if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi +if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi +pushd %{buildroot} +if [ -d usr/lib ]; then + find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/lib64 ]; then + find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/bin ]; then + find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/sbin ]; then + find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst +fi +touch doclist.lst +if [ -d usr/share/man ]; then + find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst +fi +popd +mv %{buildroot}/filelist.lst . +mv %{buildroot}/doclist.lst . + +%files -n python3-ttkbootstrap -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Wed May 10 2023 Python_Bot - 1.10.1-1 +- Package Spec generated diff --git a/sources b/sources new file mode 100644 index 0000000..dbab598 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +12bafb4412daef43343b914f7df702ba ttkbootstrap-1.10.1.tar.gz -- cgit v1.2.3