Built-in Widgets
Button¶
App(
Frame("Button"),
Row(
Column(
Button("First"),
Button("Second", align=TextAlign.CENTER),
Button("Third", align=TextAlign.RIGHT),
Button("Fourth", align=TextAlign.LEFT),
).spacing(10)
).spacing(10),
).run()
Text¶
App(
Frame("Button"),
Row(
Column(
Text("First", kind=Kind.NORMAL),
Text("Second", kind=Kind.INFO, align=TextAlign.CENTER),
Text("Third", kind=Kind.SUCCESS, align=TextAlign.RIGHT),
Text("Fourth", kind=Kind.WARNING, align=TextAlign.LEFT),
Text("Fifth", kind=Kind.DANGER, align=TextAlign.LEFT),
).spacing(10)
).spacing(10),
).run()
Switch¶
And more...¶
This document is WIP. In the future, we will add explanation for more widgets and examples in this document. For now, please see the "examples" directory for more widgets and the examples.