MFC application and Python

Neil Hodgson nhodgson at bigpond.net.au
Wed May 19 05:16:56 EDT 2004


Adal Chiriliuc:

> wxPython is way too bloated (9 MB on disk, 20MB! in memory for basic
> stuff) and people say buggy. PythonWin is nice and small, but lacks
> some features, like GDI support.

   At least some of GDI is available. I wrote some of the printing code
inside PythonWin and there are calls like dc.GetTextMetrics, dc.SetMapMode,
and dc.TextOut.

> So this gave me the idea of doing it the other way around: having a
> skeleton application which handles Win32 messages and the application
> threads and this will call into Python for the logic, which will call
> back into C++ for the critical operations and GUI updates.

   Venster and ctypes may be of interest. Venster doesn't appear very active
but was updated as recently as January.

   Neil





More information about the Python-list mailing list