Re: Method Delegation To Subinstances

2006-05-28 Thread Cloudthunder
I could then fill the getattr function with different conditional statements as needed, cool. Thanks Steve!On 5/27/06, Steve Holden < [EMAIL PROTECTED]> wrote:Cloudthunder wrote:> In the example:> > class Boo:> def __init__(self, parent):> self.parent = parent> print self.parent

Rapyd: control variables

2006-05-24 Thread Cloudthunder
Okay, I'm just starting out with rapyd, so bear with me. I have one form and a label and I gave the label a controlvariable (textvariable). See:#--# # 

Re: Accessing object parent properties

2006-05-23 Thread Cloudthunder
In the example:class Boo:    def __init__(self, parent):    self.parent = parent    print self.parent.testme    def run():    print "Yaho!" class Foo:    testme = "I love you!"     def __init__(self):    test = Boo(self)A = Foo()How can I set up method delegation so that I can d

Re: Method Delegation To Subinstances

2006-05-23 Thread Cloudthunder
In the example:class Boo:    def __init__(self, parent):    self.parent = parent    print self.parent.testme    def run():    print "Yaho!" class Foo:    testme = "I love you!"     def __init__(self):    test = Boo(self)A = Foo()How can I set up method delegation so that I can d

Method Delegation To Subinstances

2006-05-23 Thread Cloudthunder
In the example:class Boo:    def __init__(self, parent):    self.parent = parent    print self.parent.testme    def run():    print "Yaho!"class Foo:    testme = "I love you!"     def __init__(self):    test = Boo(self)A = Foo()How can I set up method delegation so that I can do

Accessing object parent properties

2006-05-23 Thread Cloudthunder
t needs to access. How do I do this? Am I making sense? Thank you to anyone who can help.- Cloudthunder   -- http://mail.python.org/mailman/listinfo/python-list

Re: Merging Objects

2006-04-03 Thread Cloudthunder
Sorry, I don't understand, how does this solve my problem?On 4/3/06, Jesus Rivero - (Neurogeek) <[EMAIL PROTECTED] > wrote:-BEGIN PGP SIGNED MESSAGE-Hash: SHA1>>> help(getattr) help(setattr) Regards,  Jesus Rivero - (Neurogeek)Cloudthunder wrote:> Question: how do

Merging Objects

2006-04-03 Thread Cloudthunder
Question: how do I merge two objects? I would like to be able to have an instance of Foo and an instance of Boo and then be able to add them together and create a new object that has the methods and properties of both objects. I am going to be doing a lot of this and I don't want to have to dynamic