PythonWin event handling

  • Thread starter Michael Butscher
  • Start date
M

Michael Butscher

Hi,

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.CreateWindow(...)
rec.OnChar = OnChar
--------------------

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


Any ideas?


Thank you

Michael
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,201
Messages
2,571,048
Members
47,651
Latest member
VeraPiw932

Latest Threads

Top