Re: [python-win32] OnItemSend cancel help

2006-11-09 Thread Mark Hammond
In general, you should simply return the value of that variable.  You didn't include the next line of the makepy snippet which includes the types, but a possibility is that the event handler is actually a function rather than a "sub" - so maybe something like:   return 0, True   should be

[python-win32] OnItemSend cancel help

2006-11-09 Thread d tiu
Hi all,I'm writing an outlook addin, trying to stop email sends on certainconditions.  I'm using OnItemSend callbacks that has a cancelparameter which if set to True, will cancel the send.  It's notworking :(.  I'm calling:  self.applicationEvents = DispatchWithEvents(application, ApplicationEvent)