summaryrefslogtreecommitdiff
path: root/python-ttkbootstrap.spec
diff options
context:
space:
mode:
Diffstat (limited to 'python-ttkbootstrap.spec')
-rw-r--r--python-ttkbootstrap.spec271
1 files changed, 271 insertions, 0 deletions
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 <Python_Bot@openeuler.org> - 1.10.1-1
+- Package Spec generated