serve_multiple2.pyΒΆ
open in new tab1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | """
Import apps from other example modules, and host these as widgets in a
single app.
"""
from flexx import flx
from flexxamples.demos.drawing import Drawing
from flexxamples.howtos.splitters import Split
from flexxamples.demos.twente import Twente
class MultiApp(flx.TabLayout):
def init(self):
Drawing(title='Drawing')
Split(title='Split')
Twente(title='Twente')
if __name__ == '__main__':
# This example is setup as a desktop app
flx.launch(MultiApp)
flx.run()
|