1 *** pallavi/plugins/SimpleMenubar.py.orig 2010-04-12 12:59:40.000000000 +0200
2 --- pallavi/plugins/SimpleMenubar.py 2010-04-12 13:00:27.000000000 +0200
7 if submenuname == None:
8 ! menu = menubar.GetMenu(menubar.FindMenu(menuname))
10 #This is a long drawn out way of getting a submenu from a menu.
11 #Is there any easier way to do this?
15 if submenuname == None:
16 ! if menubar.FindMenu(menuname) >= 0:
17 ! menu = menubar.GetMenu(menubar.FindMenu(menuname))
19 #This is a long drawn out way of getting a submenu from a menu.
20 #Is there any easier way to do this?
25 menubar.Append(menu, menuname)
27 \ No newline at end of file
31 menubar.Append(menu, menuname)