Page 1 of 1
Text (string) input from hoc created GUIs
Posted: Wed Oct 10, 2007 5:28 am
by shaul
I am writing a GUI in NEURON to facilitate some of the operations I often perform. Using the GUI commands (xbutton and that family) one can create a "get a number " input through the GUI commands (4, 6 etc'). However I could not see the equivalent for getting a string from the user which would be very useful for me. There is an option to pop up a window but is there an equivalent of the number way of doing this?
Posted: Thu Oct 11, 2007 12:10 am
by ted
You're probably referring to string_dialog()--see
http://www.neuron.yale.edu/neuron/stati ... ing_dialog
But isn't this "the equivalent for getting a string from the user"?
Posted: Sat Oct 13, 2007 5:08 pm
by shaul
I was ineed referring to string_dialog(). I thought perhaps there is an option to do this without popping up a dialogue box. Just as the xvalue function can get a number from the user without the need for a popup.
Posted: Sun Oct 14, 2007 12:49 pm
by ted
hoc does not have such a feature.