Exemplo n.º 1
0
                    ),
            ]
    ),
    ]

    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