Syntax:
h.boolean_dialog("label", ["accept", "cancel"])
Example:
from neuron import h, gui if h.boolean_dialog('Do you prefer to code in Python or HOC?', 'Python', 'HOC'): print 'You prefer Python!' else: print 'You prefer HOC!'
See also
Syntax:
h.continue_dialog("message")
Example:
from neuron import h, gui h.continue_dialog("You are reading a message from a dialog box.")![]()
h.string_dialog("message", strref)
Example:
from neuron import h, gui my_str = h.ref('') if h.string_dialog('Type a string:', my_str): print 'You typed:', my_str[0] else: print 'You canceled'![]()