Notes
The following are experiments to explore the UI elements available through the Houdini Python hou.ui module.
Source
hou.ui
Display the help for the specified node type. If no help browser is open, this function will create a new one. If you want to display the help for a node instance, it is easy to access the hou.NodeType from the node, as illustrated in this example: Display the help for the specified node type.
www.sidefx.com
Snippets
>>> hou.ui.displayMessage('Start Houdini', buttons=('OK', 'CANCEL'))Button selections return int values based on their order: 0, 1, etc.
0Users can be prompted with a list of choices to select from.
>>> hou.ui.selectFromList(('Option 1', 'Option 2'), message = 'Select one of the options', title = 'Start Menu')
(1,)Multiple options can also be submitted.
(0, 1)