Referencing frame widgets in another class
John Salerno
johnjsal at gmail.com
Thu Aug 3 08:01:12 PDT 2006
Hi everyone. I tried posting this question to the gmane newsgroup, but
it's been a while and I don't see it, so it might not be working for
me. I apologize if it appears twice.
My question was about referencing the widgets of my frame from within
a separate class, specifically a validator class. I've tried passing
the frame as an argument to the validator's __init__ method, but I get
an error saying there are too many arguments.
I know this is a very newbie OO question, but I just can't figure it
out! I'm trying to make some kind of reference like this in my
validator class:
frame.widget.method() = some_value
but so far I can't figure out how to get a reference to the frame.
Thanks.
More information about the wxpython-users
mailing list