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)
>
Użytkownik Jacek Kałucki napisał:
> Problem is, the first menu has identifier equal to "0",
> so call returns "None" instead of "0".
>
Sorry, shoud state "None instead of menu object". Rest is OK.
--
Regards
Jacek Kałucki
___
Post Messages to: Dab
Hi,
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",
s