:orphan: .. _demo.py: demo.py ======= .. raw:: html open in new tab
.. code-block:: py :linenos: """ A demo with few lines of code with some fancy widgets, which works as an exported app, so it can be embedded e.g. on the main page. """ from flexx import ui, app from flexx.ui.examples.splines import Splines from flexx.ui.examples.twente import Twente from flexx.ui.examples.dock import Dock from flexx.ui.examples.drawing import Drawing class Demo(ui.Widget): def init(self): with ui.TabPanel(): Splines(title='Spline demo') Twente(title='Temperature vis') Dock(title='Dock panel demo') Drawing(title='Drawing app') if __name__ == '__main__': m = app.App(Demo, title='Flexx demo').launch() app.run()