WinForms UI Pack
Project description
aquaref
aquaref
是使用.NET WinForms
开发的界面库
例子
from aquaref.winforms.metro import *
from aquaref import *
from os import environ
window = MetroForm()
window.Title = "aquaref.Metro"
tooltip = MetroToolTip()
tab = window.Create(MetroTab)
tab.Pack(Dock="Fill")
tab1 = tab.CreatePage("Tiles && Buttons")
button3 = tab1.Create(MetroButton)
button3.Text = "System"
button3.Bind("Click", lambda e1, e2: window.StyleManager.SetTheme("System"))
button3.Pack(Dock="Top")
tooltip.SetToolTip(button3, "Button3")
button2 = tab1.Create(MetroButton)
button2.Text = "Dark"
button2.Bind("Click", lambda e1, e2: window.StyleManager.SetTheme("Dark"))
button2.Pack(Dock="Top")
button2.ToolTip = "Button2"
button = tab1.Create(MetroButton)
button.Text = "Light"
button.Bind("Click", lambda e1, e2: window.StyleManager.SetTheme("Light"))
button.Pack(Dock="Top", Margin=10)
label = tab1.Create(MetroLabel)
label.Text = "Theme"
label.Pack(Dock="Top")
tab2 = tab.CreatePage("Options")
window.StyleManager.Theme = "Dark"
window.StyleManager.Style = "Red"
window.AppRun()
浅亮
深黑
教程
基本窗口
from aquaref import Form
window = Form()
window.AppRun()
导入
默认aquaref.__init__
是不会直接导入额外的组件库的
MetroFramework
import aquaref.winforms.metro as metro
打包
建议不要启用单文件
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
aquaref_metroframework-0.1.2.tar.gz
(430.8 kB
view details)
Built Distribution
File details
Details for the file aquaref_metroframework-0.1.2.tar.gz
.
File metadata
- Download URL: aquaref_metroframework-0.1.2.tar.gz
- Upload date:
- Size: 430.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.4.2 CPython/3.9.9 Windows/10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a335e7f04da4df12903ac4917e5a4487241264f3bd8632a0c450894dbec2fca6 |
|
MD5 | 4949892d964d498a4fdbe63526f4b2a1 |
|
BLAKE2b-256 | 800b08c108125a0361aaa89e45862478ec9d88572ec5ae17928a46bd628d76b5 |
File details
Details for the file aquaref_metroframework-0.1.2-py2.py3-none-any.whl
.
File metadata
- Download URL: aquaref_metroframework-0.1.2-py2.py3-none-any.whl
- Upload date:
- Size: 435.5 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.4.2 CPython/3.9.9 Windows/10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c51f56c5936211d6c4156d3f3146c7930ed2dbcce87687441e494bec5b7dcb61 |
|
MD5 | 8dd5f20ff693365fa183ae59f4438ee6 |
|
BLAKE2b-256 | 84687f7c8c166f79f78b784167e21fb35f69e92460b0413569284674abe32569 |