When defining classes and setting methods (qsetClass, qsetMethod) the environment has the object "this" and "super" 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 <- Qt$QPushButton("click me")<br>qconnect(b, "pressed", function(...) print(this$text))<br><br>It is easy enough to hack qconnect to add in "this" to the environment of the handler, but I'm not sure how "super" 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>