-
Notifications
You must be signed in to change notification settings - Fork 26
Menu
Alessandro Febretti edited this page Aug 28, 2013
·
6 revisions
[[module omegaToolkit | Python-Reference#module-omegatoolkit]]
wraps omegaTookit::ui::Menu
Represents a menu. Menus can contain buttons, sliders, checkboxes and sub menus
Method(s) | Description |
---|---|
addItem(type) |
Adds an item to the menu. Type can be one of MenuItem.Button , MenuItem.Checkbox , MenuItem.Slider , MenuItem.SubMenu , MenuItem.Label , MenuItem.Image , MenuItem.Container
|
addButton(label, command) |
Convenience method for adding a button item and associating a command to it. Returns a reference to the created MenuItem
|
addSubMenu(label) |
Convenience method for adding a sub menu. Returns a reference to the created Menu
|
addLabel(text) |
Convenience method for adding a label. Returns a reference to the created MenuItem
|
addImage(image) |
Convenience method for adding an image. Returns a reference to the created MenuItem . the image is a PixelData object |
addSlider(ticks, command) |
Convenience method for adding a slider. Returns a reference to the created MenuItem
|
addContainer() |
Convenience method for adding a container. Returns a reference to the created MenuItem
|
show() |
Displays the menu |
hide() |
Hides the menu |
isVisible() |
Returns True if this menu is currently visible |
placeOnWand(event) |
When 3d menus are enabled, places the menu on the wand ray. The argument must be an event containing ray information, like a Wand or Pointer event. |
getContainer() |
Gets the 'Container' widget containing the items of this menu |
TODO