tkforms
来自WinForms界面扩展库做出来的组件
Metro
免费使用,但是UI风格比较原始
Windows XP SP1/SP2/SP3Windows VistaWindows 7Windows 8Windows 10
# 基础示例1
from tkforms import tkmetro
from tkinter import Tk
root = Tk()
button = tkmetro.Button()
button.pack(fill="both", expand="yes", padx=5, pady=5)
root.mainloop()
# 基础示例2
from tkforms import tkmetro
from tkinter import Tk
root = Tk()
button1 = tkmetro.Button()
button1.pack(fill="both", expand="yes", padx=5, pady=5)
button2 = tkmetro.Button()
button2.configure(theme="dark") # theme设置组件主题配色,可设置为 "light" 或 "dark"
button2.pack(fill="both", expand="yes", padx=5, pady=5)
root.mainloop()
Guna UI2
项目地址 这只是实验上的库,Guna UI2库在扩展中是需要付费解锁,请谨慎使用
.NET => 4.0
# 基础示例1
from tkforms import tkguna
from tkinter import Tk
root = Tk()
button = tkguna.Button()
button.pack(fill="both", expand="yes", padx=5, pady=5)
root.mainloop()
# 基础示例2
from tkforms import tkguna
from tkinter import Tk
root = Tk()
button = tkguna.Button()
button.configure(animated=True, auto_rounded=True) # animated设置是否有动画效果 auto_rounded自动设置圆角的大小
button.pack(fill="both", expand="yes", padx=5, pady=5)
root.mainloop()
# 基础示例3
from tkforms import tkguna
from tkinter import Tk
root = Tk()
button = tkguna.Button()
button.configure(animated=True) # animated设置是否有动画效果
button.configure(border_radius=5) # border_radius设置圆角大小
button.pack(fill="both", expand="yes", padx=5, pady=5)
root.mainloop()
备注
自2.0版本开始,将使用configure设置属性,例如:
Widget.text = "Widget" # <2.0
Widget.configure(text="Widget") # =>2.0
Metadata
Release files for tkforms 2.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| tkforms-2.1.0.tar.gz | 10.6 MB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| tkforms-2.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 21.3 MB
Release files / tkforms-2.1.0.tar.gz
| Download URL | tkforms-2.1.0.tar.gz |
|---|---|
| Size | 10.6 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6b7c8a38242c08686a24330fc860d88649041b0462f3a7e2124113c02a69df49
|
|
BLAKE2b-256 checksum How to use checksums |
b96ceab430d350454e6a713a4e3494f733451f0a5386dc4b211e4b282614e2a4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.0
|
Release files / tkforms-2.1.0-py3-none-any.whl
| Download URL | tkforms-2.1.0-py3-none-any.whl |
|---|---|
| Size | 10.7 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b7e3ef7b3d4e6d037240d81dcb662da2ef7abd684492a80078e7732380545e06
|
|
BLAKE2b-256 checksum How to use checksums |
2185609470b282ca6408611678255852ec622d7333130d5c7f00c9bbfdd523fc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.0
|
Security for tkforms 2.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.