Hey list,<br><br>I think I got this right, and it seems to work, but I just feel like there is probably a better way to override a method in IP. Some time spent googling doesn&#39;t bring anything up except for IP/C# code examples containing the override keyword. For example, I want to override the Form class&#39; OnLoad method, so I wrote a decorator to do so.<br>
<br>class frm(Form):<br>    def __init__(self):<br>            Form.__init__(self)<br><br>    def override(method):<br>        def inner(*args):<br>            base = super(Form, args[0]) #args[0] is frm instance<br>            base_method = getattr(base.__thisclass__, method.__name__)<br>
            method(*args) #call our method first<br>            return base_method(*args)<br>        return inner<br><br>    @override<br>    def OnLoad(self, evt_args):<br>            print evt_args<br><br>It doesn&#39;t do anything snazzy - just prints out the EventArgs, then calls the base class Form.OnLoad.<br>
<br>Any thoughts?<br><br>Brian<br>