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_realtaiizor-0.1.2.tar.gz (5.0 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

flater_realtaiizor-0.1.2-py2.py3-none-any.whl (5.0 MB view details)

Uploaded Python 2Python 3

File details

Details for the file flater_realtaiizor-0.1.2.tar.gz.

File metadata

  • Download URL: flater_realtaiizor-0.1.2.tar.gz
  • Upload date:
  • Size: 5.0 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.4.2 CPython/3.9.9 Windows/10

File hashes

Hashes for flater_realtaiizor-0.1.2.tar.gz
Algorithm Hash digest
SHA256 0ea2b1c823ceb36fd79400de36a97a7b04b08cbf07c69cb3ae83e91b88763cea
MD5 2cb7d3d328804e6287672e2cdc551775
BLAKE2b-256 ce0c2071f85ce5121268c1f852ff3d5b7093390a2ca3a116a34d472601666fe5

See more details on using hashes here.

File details

Details for the file flater_realtaiizor-0.1.2-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for flater_realtaiizor-0.1.2-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 705536de66766778ae753235f30e4ad0d921c6517a07c7e9284fa041e86d369a
MD5 5ae55f70e93e30be596c061f5c37f891
BLAKE2b-256 82e1ddd49d343a595b2a20cb9148ef1a6eff45cf42031e8c378d1a3f92b26a15

See more details on using hashes here.

Supported by

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