Online Shopping : Computers : Programming : Languages : Python : Platforms : Windows

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

12 of 12 people (100%) answered Yes
Recently 6 of 6 people (100%) answered Yes

Entry

How can I use the Microsoft Foundation Classes from Python?
What is pythonwin?
Should I use pythonwin or wxpython?

Feb 29th, 2000 20:57
Nathan Wallace, Gerrit Holl, Fredrik Lundh, Ken Seehof


Try these links:

    http://www.python.org/windows/pythonwin/
    http://starship.python.net/crew/mhammond/
    http://www.nl.linux.org/~gerrit/gui.html

Pythonwin is a wrapper to the Microsoft Foundation Classes, MFC. With
it, you can write application that are bound very tightly to Windows;
you can use the features of the Windows UI. There are about 30 MFC
objects exported. It's included within the Windows Python distribution.
If you use Windows, you already have it, if you don't, you won't need it
anyway ;).

Inside the Pythonwin distribution, you will find a Help File
(Pythonwin.hlp) which is a reference manual for all objects exposed in
Pythonwin. The homepage has some documentation resources:

    http://www.python.org/windows/pythonwin/

Another approach is to forget MFC and get wxPython instead wxPython is
based on wxWindows which is similar to MFC but better (in my opinion)
and is multi-platform, so your app will run on Linux, etc. too.  Unless
you have legacy MFC code, I highly recommend wxPython.  Your application
look and feel will be the same as with MFC.  And it's easier to learn
and has a great demo/tutorial that will get you up to speed  in about 45
seconds.

wxPython can be found at

    http://alldunn.com/wxPython