Skip to main content

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


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)

Uploaded Source

Built Distribution

ttkthemes2-0.1.0-py3-none-any.whl (410.7 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page