Distributing Python apps

Dave Brueck dave at pythonapocrypha.com
Sun Jan 5 08:34:25 EST 2003


On Sat, 5 Jan 2003, Chris Liechti wrote:

> you can have Python starting form 400kB (compressed) then every extension
> module you use adds a bit and a huge amount of space can be used by GUIs.
> that depends on the GUI lib you decide to use if you use win32all (or
> ctypes but thats not easy to use for GUI) it won't add too much. 1.75MB
> will be possible, i think.

Quick side note: depending on your GUI needs, ctypes can be a pretty easy
way to go. Create your GUI as resources (e.g. in MS Visual Studio) and
wrap them into a tiny DLL. Then use ctypes to load them at runtime and run
CreateDialogIndirect. Most of the work involved is simply looking in
header files for the values of various Win32 messages and constants, but
once you do it the first time you can re-use much of the code over and
over.

-Dave





More information about the Python-list mailing list