def demo_02(): ns = init_testing(True) model = ns['model'] model.remove(0, len(model)) tmp = TextModel('"""\n' + __doc__ + '"""') cell = Cell(tmp.texel, NULL_TEXEL) model.insert(len(model), mk_textmodel(cell)) for code in examples.split('---'): code = code.strip() tmp = TextModel(code) cell = Cell(tmp.texel, NULL_TEXEL) model.insert(len(model), mk_textmodel(cell)) view = ns['view'] view.index = 1 wx.CallAfter(view.Scroll, 0, 0) view.SetFocus() if 0: INTERPRETER.namespace.update(ns) from wxtextview import testing testing.pyshell(ns) ns['app'].MainLoop()
def demo_01(): from wxtextview import testing ns = test_13() #12 #print "app=", repr(ns['app']) testing.pyshell(ns) ns['app'].MainLoop()
def demo_01(): ns = test_13() from wxtextview import testing testing.pyshell(ns) ns['app'].MainLoop()
def demo_00(): from wxtextview import testing ns = test_11() testing.pyshell(ns) ns['app'].MainLoop()