On Nov 24, 2009, at 9:57 AM, <[email protected]>  
<[email protected]> wrote:

> Is there a way to reference the "kid" object using the setAll  
> command? I
> want to be able to set the DynamicBackColor by doing something like
>
> self.setAll('DynamicBackColor',(self.setColor,kid))

        No, of course not - that's basic Python lexical scoping.

> def setColor(self,obj)
>    if obj.Enabled:
>        obj.BackColor='red'
>    else:
>        obj.BackColor='white'


        Why not just call setAll() twice, once each with a filter on Enabled  
= True/False, and the appropriate value for the filter?


-- Ed Leafe



_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users
Searchable Archives: http://leafe.com/archives/search/dabo-users
This message: 
http://leafe.com/archives/byMID/[email protected]

Reply via email to