Improved widget options

25 views
Skip to first unread message

Bruce Sherwood

unread,
May 3, 2018, 9:42:01 AM5/3/18
to Glowscript Users
Now for any widget (button, radio, checkbox, slider, menu, wtext) you can remove a widget named w from the web page with w.delete().

Also, except for wtext, you can temporarily disable or re-enable a widget with w.disabled = True or False. When an object is disabled it is grayed out (except for a slider) and widget events are not sent to the bound function (a slider can still be moved, but it doesn't do anything).

Here is the updated documentation:


These new features are not yet available for VPython 7.

Bruce


Reply all
Reply to author
Forward
0 new messages