[python-win32] Simple scintilla example

Mark Hammond mhammond at skippinet.com.au
Wed Aug 4 14:59:00 CEST 2004


> I'm trying to get a simple program running to open a new scintilla
> window. Here's what I tried:

Look at the pythonwin demos - eg, Demos\dibdemo.py.  After looking at that,
the following seems to work:

>>> import win32ui
>>> template = pywin.mfc.docview.DocTemplate(None)
>>> doc = pywin.scintilla.document.CScintillaDocument(template)
>>> view = pywin.scintilla.view.CScintillaView(doc)
>>> frame = win32ui.CreateMDIChild()
>>> frame.LoadFrame()
>>> frame.ShowWindow()



More information about the Python-win32 mailing list