No project description provided
Project description
TtkTheme2
受ttkthemes
灵感而发,目的只是为了补充ttkthemes
的主题。
维护者:XiangQinxi
TtkThemes2
*依赖tksvg
库,有些主题是使用tksvg构建的,需要安装tksvg
pip install tksvg
使用:
from ttkthemes2 import TtkThemes2
theme = TtkThemes2(theme_name=...)
简单示例
from tkinter import Tk, ttk, StringVar
from ttkthemes2 import TtkThemes2
root = Tk()
theme = TtkThemes2(theme_name="awdark")
window = ttk.Frame(root)
button = ttk.Button(window, text="TtkButton")
button.pack(padx=10, pady=10, fill="x")
window.pack(fill="both", expand="yes")
root.mainloop()
Themed2Tk
简易包装TtkThemes2
*依赖tksvg
库,有些主题是使用tksvg构建的,需要安装tksvg
pip install tksvg
使用:
from ttkthemes2 import Themed2Tk
root = Themed2Tk(theme_name=...)
简单示例
from tkinter import Tk, ttk, StringVar
from ttkthemes2 import Themed2Tk
root = Themed2Tk(theme_name="awdark")
window = ttk.Frame(root)
button = ttk.Button(window, text="TtkButton")
button.pack(padx=10, pady=10, fill="x")
window.pack(fill="both", expand="yes")
root.mainloop()
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
ttkthemes2-0.1.0.tar.gz
(103.9 kB
view hashes)
Built Distribution
ttkthemes2-0.1.0-py3-none-any.whl
(410.7 kB
view hashes)
Close
Hashes for ttkthemes2-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 36a32c3a7dd3214f0a4133f51dffc8709a7ab3bec07c784190eb96be6e9ded95 |
|
MD5 | 44b96bfc254e0d6fc439911d9a9d14f5 |
|
BLAKE2b-256 | 6d1f3c92408d5b353e01d3abe5ad23748fb4f3b1f3b2eeb8a622a840ce158c9a |