In [1]:
from flexx import ui
ui.run()
Out[1]:
In [2]:
b = ui.Button(text='hellow!')
b
Out[2]:
In [3]:
b.text = 'hahahss!'
In [4]:
b # what if we try to show it again?
Out[4]:
In [5]:
with ui.HSplitter() as s:
b1 = ui.Button(text='left')
b2 = ui.Button(text='middle')
b3 = ui.Button(text='right')
s
Out[5]:
In [6]:
with ui.FormLayout(flex=1) as form:
ui.Label(text='name:')
ui.Button(text='we need a text field :)')
ui.Label(text='age:')
ui.Button(text='and a spinbox :)')
form
Out[6]:
In [ ]: