Hi
I am attempting to add a tooltip to a menuitem. The menuitem, command,
shortcut and icon all work fine, but the tooltip does not display in the
Nuke interface. My code is shown below. What could I be missing here?
usersToolbar = nuke.toolbar('Nodes')
myMenu = usersToolbar.addMenu('ICO', 'icon.png')
myMenu.addCommand('New Node - GUI', 'makeGUI()', 'alt+g', 'ico.png', 'Tool
Tip Test' )
Help for Menu lists this for the format
addCommand(...)
| self.addCommand(**kwargs) -> The menu/toolbar item that was added to hold
the command.
| Add a new command to this menu/toolbar.
| @param **kwargs The following keyword arguments are accepted:
| name The name for the menu/toolbar item
| command The command to add to the menu/toolbar
| shortcut The keyboard shortcut for the command
| icon An icon for the command
| tooltip The tooltip text.
| index The position to insert the new item in, in the menu/toolbar.
| readonly Whether the item should be available when the menu is invoked in
a read-only context.
| @return: The menu/toolbar item that was added to hold the command.
Thank you.
Paul
_______________________________________________
Nuke-python mailing list
[email protected], http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python