Newbie: pywin problem

Tom B. sbabbitt at commspeed.net
Mon Aug 2 19:57:13 EDT 2004


"Martin DeMello" <martindemello at yahoo.com> wrote in message
news:rCrPc.154159$Mr4.50525 at pd7tw1no...
> Here's a transcript:
>
> >>> import win32ui
> >>> template = pywin.mfc.docview.DocTemplate(None)
> >>> doc = pywin.scintilla.document.CScintillaDocument(template)
> >>> view = pywin.scintilla.view.CScintillaView(doc)
> >>> fr = win32ui.GetMainFrame()
> >>> view.CreateWindow(fr)
>
> Now how do I get the window to display? I thought the call to
> CreateWindow would do it, but the window just gets created silently.
>
> martin

I would try wxPython at http://wxpython.org/  they have a wrapper for
scintilla and are it is much more Pythonic.

You probably need to do a

somename = view.CreateWindow(fr)
somename.Show(1)

to get your current app to work, but Win32Ui is kinda funny.

Tom Babbitt





More information about the Python-list mailing list