WinForms UI Pack
Project description
Flater
Flater是使用.NET WinForms开发的界面库
例子
from flater.winforms.metro import *
from flater import *
from os import environ
window = MetroForm()
window.Title = "Flater.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 flater import Form
window = Form()
window.AppRun()
导入
默认flater.__init__是不会直接导入额外的组件库的
MetroFramework
import flater.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
flater_metroframework-0.1.2.tar.gz
(430.8 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file flater_metroframework-0.1.2.tar.gz.
File metadata
- Download URL: flater_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 |
c244df40209b6c3a779c900e1ddf9bef6c14b99016650ed120f66fc49ffd2568
|
|
| MD5 |
37e5c52b13078ee3f130a71724b01f70
|
|
| BLAKE2b-256 |
c79199e8ac58ac2aced11eeb427b9579e0b468c5d90f9385ff98dd4de13d1247
|
File details
Details for the file flater_metroframework-0.1.2-py2.py3-none-any.whl.
File metadata
- Download URL: flater_metroframework-0.1.2-py2.py3-none-any.whl
- Upload date:
- Size: 435.4 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 |
082551036b7e3a53a080dda130bf0b48ab214c77b58315ff020f6b9948857d24
|
|
| MD5 |
33deee96ac8403e5edf724908166104c
|
|
| BLAKE2b-256 |
fa82bdccaaefa9b8d4d402af6791d5de0b30895389a804ad3a4a5111a85c8893
|