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-0.1.2.tar.gz
(52.4 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
flater-0.1.2-py3-none-any.whl
(48.4 kB
view details)
File details
Details for the file flater-0.1.2.tar.gz.
File metadata
- Download URL: flater-0.1.2.tar.gz
- Upload date:
- Size: 52.4 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 |
240068994d5591f2272b117f62c958b58c8f9bb67710f2a55a785f59bbeb25ac
|
|
| MD5 |
5e5007f03134db0f5e929ff9148b118f
|
|
| BLAKE2b-256 |
6c9ee63e13837768c341cc089e018db7ff367d41b480e597cc871a5461213673
|
File details
Details for the file flater-0.1.2-py3-none-any.whl.
File metadata
- Download URL: flater-0.1.2-py3-none-any.whl
- Upload date:
- Size: 48.4 kB
- Tags: 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 |
8bacee91e848680b49a32fa963ca918caab43dcfd63d3e77b6767b656325e6a0
|
|
| MD5 |
ae6468e473d1915d66568d707a4af1ab
|
|
| BLAKE2b-256 |
c1cf28b4639575c44f7a2cb31c2bf674105d820b5c79ad823e75f28544e36fd2
|