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

Uploaded Python 3

File details

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

File metadata

  • Download URL: tkforms-2.1.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.1.0.tar.gz
Algorithm Hash digest
SHA256 6b7c8a38242c08686a24330fc860d88649041b0462f3a7e2124113c02a69df49
MD5 3437838fb27930728313b8c61a15f57b
BLAKE2b-256 b96ceab430d350454e6a713a4e3494f733451f0a5386dc4b211e4b282614e2a4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: tkforms-2.1.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.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b7e3ef7b3d4e6d037240d81dcb662da2ef7abd684492a80078e7732380545e06
MD5 572bce5f6052f3ad3b52ed3999b5287b
BLAKE2b-256 2185609470b282ca6408611678255852ec622d7333130d5c7f00c9bbfdd523fc

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