Hello.
Something strange is happening when working with menus:
menubar returns a Menu object
menubar.menu('Viewer') also returns a menu object.
menubar.menu('Viewer').addMenu(testMenu)
menubar.menu('Viewer').menu(testMenu) returns a menu object if the menu has
entries, but a menuItem object if it's empty.
The problem being that a menuItem has no .addCommand() attribute.I can select it properly by using a addMenu again, which does return the right item, but I was just wondering if it was a bug or an intended behaviour. The python reference says .menu() would return a menu.
_______________________________________________ Nuke-python mailing list [email protected], http://forums.thefoundry.co.uk/ http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python
