When defining classes and setting methods (qsetClass, qsetMethod) the environment has the object &quot;this&quot; and &quot;super&quot; available to it. Would this be possible within a callback set by qconnect? In RGtk2 and tcltk there is a way to get the object within the callback without having to use global variables or pass that object in through user.data.<br clear="all">
<br>E.g., something like this<br><br>b &lt;- Qt$QPushButton(&quot;click me&quot;)<br>qconnect(b, &quot;pressed&quot;, function(...) print(this$text))<br><br>It is easy enough to hack qconnect to add in &quot;this&quot; to the environment of the handler, but I&#39;m not sure how &quot;super&quot; would be done.<br>
<br>-- <br>John Verzani<br>Chair, Department of Mathematics<br>College of Staten Island, CUNY<br><a href="mailto:verzani@math.csi.cuny.edu">verzani@math.csi.cuny.edu</a><br>