On Jan 23, 2009, at 3:11 PM, Jacek Kałucki wrote:
> I found error in getMenu method of dMenuBar.py module.
> Here is the code.
>
> ret = None
> # Try the Caption
> idx = self.FindMenu(idOrCaption)
> if idx > 0:
> ret = self.GetMenu(idx)
>
> Problem is, the first menu has identifier equal to "0",
> so call returns "None" instead of "0".
> You should correct "if" statement to:
>
> if idx >= 0:
Good eye! I had already fixed that in my local copy, but had not
committed the change until I had the chance to fix other related code.
It should be good now in the current commit.
-- 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]