Form¶
Example:
from flexx import ui
class Example(ui.Widget):
def init(self):
with ui.FormLayout():
self.b1 = ui.LineEdit(title='Name:')
self.b2 = ui.LineEdit(title="Age:")
self.b3 = ui.LineEdit(title="Favorite color:")
ui.Widget(flex=1)
-
class
flexx.ui.layouts._form.
BaseTableLayout
(*init_args, **kwargs)¶ Inherits from:
Layout
Abstract base class for layouts that use an HTML table.
Layouts that use this approach don’t have good performance when resizing. This is not so much a problem when it is used as a leaf layout, but we don’t recommend embedding such layouts in each-other.
-
class
flexx.ui.
FormLayout
(*init_args, **kwargs)¶ Inherits from:
BaseTableLayout
A form layout vertically alligns its child widgets.
A label is placed to the left of each widget (based on the widget’s title).