New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

flater

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

flater

WinForms UI Pack

pipPyPI
Version
0.1.2
Maintainers
1

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

打包

建议不要启用单文件

FAQs

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts