Skip to main content

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


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 hashes)

Uploaded Source

Built Distribution

flater_metroframework-0.1.2-py2.py3-none-any.whl (435.4 kB view hashes)

Uploaded Python 2 Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page