On May 3, 2010, at 3:32 PM, Paul McNett ☆ wrote:
> Dunno, but we provide the Modal property, so we should check for modality
> before
> calling upchain to EndModal().
I'm not saying we shouldn't handle both situations. What I'm saying is
that in general it's better to do:
try:
self.doModalStuff()
except dabo.ui.assertionException:
pass
...than:
if self.isModal():
self.doModalStuff()
The more likely the code is going to be executed when isModal() is
True, the more reason to prefer the first construct.
-- Ed Leafe
_______________________________________________
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]