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
Built Distribution
Close
Hashes for flater_realtaiizor-0.1.2-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 705536de66766778ae753235f30e4ad0d921c6517a07c7e9284fa041e86d369a |
|
MD5 | 5ae55f70e93e30be596c061f5c37f891 |
|
BLAKE2b-256 | 82e1ddd49d343a595b2a20cb9148ef1a6eff45cf42031e8c378d1a3f92b26a15 |