[python-win32] unable to receive button click notifications

Mark Hammond mhammond at skippinet.com.au
Thu Oct 18 07:47:40 CEST 2007


> I'm just trying the pywin gui examples and I'm wondering why I won't
> receive any BN_CLICKED notifications in the code attached. Can anyone
> help?

It might be that you are using win32ui, and therefore using MFC, and IIRC,
it has 'Reflected Messages' that may send the notification back to the
control itself.  An alternative is to use win32gui, which wraps the raw
win32 functions, so operates more as a "normal" Windows application.  The
win32/Demos/win32gui_*.py files has some examples of windows that create
controls and handle notifications from them.

HTH,

Mark



More information about the python-win32 mailing list