In [1]:
from flexx import ui
ui.run()


Serving apps at http://localhost:52452/
Injecting JS/CSS
Out[1]:
Flexx is ready to go

In [2]:
b = ui.Button(text='hellow!')
b


new ws connection __default__
connecting __default__ 
Out[2]:

In [3]:
b.text = 'hahahss!'



In [4]:
b  # what if we try to show it again?


Out[4]:
This widget is already shown in this notebook

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 [ ]: