PythonWin event handling

Michael Butscher mbutscher at
Sat Jun 5 21:25:23 CEST 2004


I want to receive events from a rich edit control (especially when it's 
changed or the caret was moved) created by win32ui.CreateRichEditCtrl().

Unfortunately something like this:

import win32ui

def OnChar(...):

rec = win32ui.CreateRichEditCtrl()
rec.OnChar = OnChar

does not work because the attributes of the rich edit control object are 
read only.

Any ideas?

Thank you


More information about the Python-list mailing list