i) Looking through the mails of this list I've found two uses of super
a) self.super()
b) super(MyDateTextBase, self).initProperties()
A couple of questions :
1) What is the difference? What's the different use of both?
2) in b), is it really necessary to use it? I thought
initProperties() was a user's method.
ii) And now the original question. I want to send a list to a panel when
instantiating it so that the panel will create a series of radio buttons
one for each item of the list. That is :
mypnl = pnlMyPanel(self, myListOfRadioButtons)
mySizer.append(mypnl)
So now I have a panel set with the appropriate radio buttons. So
how do I intercept the parameter (myListOfRadioButtons) and then let the
rest of the panel's initializing stuff get along? I was thinking of an
__init__(self, myList, *args, **kw): and then call super(pnlMyPanel,
self).__init__(self, *args, **kw). Would that be right? Is there a
better way?
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/dabo-users
Searchable Archives: http://leafe.com/archives/search/dabo-users
This message: http://leafe.com/archives/byMID/[email protected]