[Python.NET] Overriding OnPaint

Brian Lloyd brian at zope.com
Tue Jul 5 16:31:37 CEST 2005

> Is there a way of me to override the OnPaint method of a form or control?
> The OnPaint Method of my Form subclass gets completely ignored.

Hi Glen - currently .NET code cannot see any of the members 
that you create in Python (meaning you can't really override 
methods like OnPaint and have the right thing happen).

You should be able to register a Python callback for the Paint 
event though.

Brian Lloyd        brian at zope.com
V.P. Engineering   540.361.1716              
Zope Corporation   http://www.zope.com 

More information about the PythonDotNet mailing list