Skip to main content

tkinter with winforms

Project description

tkforms

来自WinForms界面扩展库做出来的组件

Metro

免费使用,但是UI风格比较原始

Windows XP SP1/SP2/SP3 Windows Vista Windows 7 Windows 8 Windows 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

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

tkforms-2.0.1.tar.gz (10.6 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tkforms-2.0.1-py3-none-any.whl (10.7 MB view details)

Uploaded Python 3

File details

Details for the file tkforms-2.0.1.tar.gz.

File metadata

  • Download URL: tkforms-2.0.1.tar.gz
  • Upload date:
  • Size: 10.6 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.0

File hashes

Hashes for tkforms-2.0.1.tar.gz
Algorithm Hash digest
SHA256 509b5a36f3c9957ee18a863b3d1c515e820512041155f34af729a1455d2ec29a
MD5 6d18d7dc907bea60bad177daa8ac5574
BLAKE2b-256 cd831d22104765ccb96ecc5e41664387fbdcb6ef7b8c9ae5b449e4526a2b4717

See more details on using hashes here.

File details

Details for the file tkforms-2.0.1-py3-none-any.whl.

File metadata

  • Download URL: tkforms-2.0.1-py3-none-any.whl
  • Upload date:
  • Size: 10.7 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.0

File hashes

Hashes for tkforms-2.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 28d16b261a8b79472de6a4b9dbc802b7fead25c25dd754b4684869842929d9c6
MD5 0955e3fc89f031c6a25f0ef4a7c890ea
BLAKE2b-256 470ddf303e893a66046785c640e2e669ce9f8bf402268f588a8e6b2db5e89e2f

See more details on using hashes here.

Supported by

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