On Wed, Jan 26, 2000 at 09:59:13PM +0100, Dirk H�sken wrote:
> def do_something(self):
Try do_something(self, *args). See
http://www.gtk.org/tutorial/gtk_tut-28.html
for the prototype that the callback should have. In the C case one always
has a gpointer argument, which is optional in the Python case, e.g. one
could have
b.connect("clicked", self.do_something, data)
.
.
.
def do_something(self, button, data):
.
.
.
When in doubt, the *args will get all the extra arguments, and you
can print this out to see exactly what is being passed in:
def do_something(self, *args):
print args
Dave Cook
To unsubscribe: echo "unsubscribe" | mail [EMAIL PROTECTED]