), ] ), ] if 10: aMenu = dict aItem = dict else: aMenu = Menu aItem = Item m = Menu( _mainmenu) print(m) import sys if 'wx' in sys.argv: class Model: doc = 1 from .layout import Panel from myctl import MainController from wxmain import Frame ctl = MainController(Model) ctl.menu = m ctl.layout = Panel('@ababa\n[ doc]') mainf = Frame(ctl=ctl) # vim:ts=4:sw=4:expandtab
d = MyDoc() d.person.name = 'HwiHwi' d.items.append( 'sofa' ) d.items.append( 'divan' ) d.items.append( 'boza' ) c = Person() c.name = 'HwiHwi2' d.children.append( c ) d.children.append( c ) d.children.append( c ) ms.append(d) for d in ms: panel = make_panel4Struct( model=d, fullname='doc' ) print('=======') panel._print() if 'wx' in sys.argv: master = panel #Panel('@Edit Person') class Model: doc = d print(d) from myctl import MainController from wxmain import Frame ctl = MainController(Model) ctl.layout = master frame = Frame(ctl=ctl) # vim:ts=4:sw=4:expandtab