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.0.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.0-py3-none-any.whl (10.7 MB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: tkforms-2.0.0.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.0.tar.gz
Algorithm Hash digest
SHA256 96a114cbf95b6e70d45e8e130bcb242256ae58ac42edd9d14ec975416649d079
MD5 e0398b610f705e40d24d7047d39384ec
BLAKE2b-256 9c9ee1de52086e905e08d838ae2ff4018fd9049b71bdd9df242a3e16a8ce1b4d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: tkforms-2.0.0-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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a0d3fd503480ee0ad7e11e3890d5a87a2ac72106e810a7a3b94fd524528dfc0a
MD5 00bc84aa38e4394005591427e1168f19
BLAKE2b-256 f8e5041fc8fe93eedc9e4da6a49792c025fe0c4e6761ee349e87e30a6f633415

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