About list box display

12 views
Skip to first unread message

Lucas

unread,
Jul 2, 2017, 10:39:50 PM7/2/17
to VPython-users
How can I add a list box on Vpython 7.0 display window?
Thanks,
Lucas

Bruce Sherwood

unread,
Jul 3, 2017, 12:19:21 AM7/3/17
to VPython-users
There is a menu object that provides a pull-down list box. From the Help at glowscript.org:

http://www.glowscript.org/docs/VPythonDocs/controls.html

If that's not appropriate, you could certainly display options and check for the location of a click.

Bruce Sherwood

unread,
Jul 3, 2017, 1:07:20 PM7/3/17
to VPython-users
Another approach would be a bunch of buttons or radio buttons or checkboxes, all bound to the same function that would use the widget text to identify the widget that was selected and de-select all other widgets.
Reply all
Reply to author
Forward
0 new messages