Hi all,
I try to build some new classes based on standard gtk classes. To show
my problems
some code follows:
---
class myEntry(gtk.GtkEntry):
def __init__(self, new_attr):
gtk.GtkEntry.__init__(self)
self.new_attr = new_attr
def myFunc(widget):
print widget.new_attr
new_entry = myEntry("something")
new_entry.connect("changed", myFunc)
---
The print statement in myFunc raises an attribute error, because the
parameter
widget points to the GtkEntry base class and not to myEntry.
How can i solve this ?
Many thanks and greetings
J�rgen
_______________________________________________
pygtk mailing list [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk