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",
so call returns "None" instead of "0".
You should correct "if" statement to:

            if idx >= 0:

-- 
Regards
Jacek Kałucki



_______________________________________________
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