On Friday, November 26, 2010 05:08:13 pm Ed Leafe wrote:
> On Nov 26, 2010, at 7:52 PM, John Fabiani wrote:
> > How can I set a "filt" to match one of my classes.
> > filt=("BaseClass ==dabo.ui.dCheckBox")) works when I want to use
> > BaseClass
> >
> > but I'd something like
> >
> > filt=("type(kid) == type(self.MyCheckBox)"))
> >
> > type(kid) reports
> > <class '__main__.MyCheckBox'>
>
> Maybe:
>
> __class__ = self.MyCheckBox
>
> ?
>
>
> -- Ed Leafe
Invalid syntax
That's because of
ok = eval("kid.%s" % ff)
eval(kid.__class__ = self.MyCheckBox)
Johnf
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev
Searchable Archives: http://leafe.com/archives/search/dabo-dev
This message:
http://leafe.com/archives/byMID/[email protected]