Skip to main content

tkinter with metroframework

Project description

tkforms

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

Metro

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

Windows XP SP1/SP2/SP3 Windows Vista Windows 7 Windows 8 Windows 10

# 基础示例1
import tkmetro
from tkinter import Tk

root = Tk()
button = tkmetro.Button()
button.pack(fill="both", expand="yes", padx=5, pady=5)
root.mainloop()
# 基础示例2
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()
# 高级示例1
import tkmetro
from tkinter import Tk

root = Tk()
titlebar = tkmetro.TitleBar(root)
titlebar.show()
root.mainloop()
# 高级示例2
import tkmetro
from tkinter import Tk

root = Tk()
titlebar = tkmetro.TitleBar(root)
titlebar.configure(theme="dark")
titlebar.close_button.configure(theme="dark")
titlebar.title.configure(theme="dark")
titlebar.show()
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

tkmetro-1.1.0.tar.gz (515.2 kB view details)

Uploaded Source

Built Distribution

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

tkmetro-1.1.0-py3-none-any.whl (515.0 kB view details)

Uploaded Python 3

File details

Details for the file tkmetro-1.1.0.tar.gz.

File metadata

  • Download URL: tkmetro-1.1.0.tar.gz
  • Upload date:
  • Size: 515.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.0

File hashes

Hashes for tkmetro-1.1.0.tar.gz
Algorithm Hash digest
SHA256 6f8e166253a32d481a7e1ee13b162eb95ef1c3d7cbaf986acdf6199d090daeab
MD5 81a861811af509d6f142e7f828dd8ec7
BLAKE2b-256 8df90c5f6f015889b3ca32be8fedd63bb59c24ca74f5827c12cfceec0b1a8f72

See more details on using hashes here.

File details

Details for the file tkmetro-1.1.0-py3-none-any.whl.

File metadata

  • Download URL: tkmetro-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 515.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.0

File hashes

Hashes for tkmetro-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f6b666209c3022a826dd9fa64df3228636f85f35cb45ac29565336b2eaf1948e
MD5 cece6d7adcd684f896e8139c64721b73
BLAKE2b-256 cc8a7757d85bc89873c0e8f5b99f21674921936e8c4ae56c60ddc3b0821d81e2

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