<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Wed, Jun 15, 2016 at 9:27 AM, David Gobbi <span dir="ltr"><<a href="mailto:david.gobbi@gmail.com" target="_blank">david.gobbi@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><span class="">On Wed, Jun 15, 2016 at 7:51 AM, Elvis Stansvik <span dir="ltr"><<a href="mailto:elvis.stansvik@orexplore.com" target="_blank">elvis.stansvik@orexplore.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div><div><div><div>Hi all,<br><br></div>I noticed in QVTKRenderWindowInteractor that it returns 1 in the callback it sets up for DestroyTimerEvent:<br><br>    def DestroyTimer(self, obj, evt):<br>        self._Timer.stop()<br>        return 1<br><br></div>So I suspect callbacks for this event are expected to return something. But I can't find any info in the docs on which event callbacks are expected to return something (and what), and which are not. Is this info available somewhere?<br></div></div></div></blockquote><div><br></div></span><div>I checked the code for the Execute command in vtkPythonCommand.cxx, and the return value for callbacks is ignored.  So I'm not sure why this callback returns a value.  Prabhu might remember (he wrote the function), but that was way back in 2002.  It was probably a simple mistake due to cut-and-paste.</div><div><br></div><div>If anything, a non-negative return value would indicate that the callback had aborted, e.g. that the callback did not complete whatever action it was meant to perform.  But obviously that's not the intent for this method.</div></div></div></div></blockquote><div><br></div><div>Small typo in the above: I meant non-zero, not non-negative.</div><div><br></div><div> - David </div></div></div></div>