#1
|
|||
|
|||
Disable Clicking of Button
I've created a system status panel using buttons and would like to prevent the subject from accidentally clicking on the buttons. Currently, when I click on the 'Normal' button, it becomes unshaded.
May I know how could I disable the ability for someone to click it without causing the button to be gray-out. import viz import vizdlg viz.go() SystemIndicatorPanel = vizdlg.Panel() SystemNormalButton = viz.addButtonLabel('NORMAL') SystemNormalButton.set(1) SystemErrorButton = viz.addButtonLabel('ERROR') SystemErrorButton.set(0) SystemIndicatorText = viz.addText('Overall System State') SystemIndicatorPanel.addItem(SystemIndicatorText) SystemIndicatorPanel.addItem(SystemNormalButton) SystemIndicatorPanel.addItem(SystemErrorButton) viz.link(viz.CenterTop,SystemIndicatorPanel,offset =(-150,-50,0)) |
#2
|
|||
|
|||
Are you saying you don't want to disable the button using the following and then later enable it?
Code:
SystemNormalButton.disable() |
Thread Tools | |
Display Modes | Rate This Thread |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
How to map HTML button to Transport in Vizconnect | JB_HP_Viz | Vizard | 3 | 02-24-2015 07:38 PM |
A door question... left button mouse | Sakiot | Vizard | 3 | 08-26-2011 12:45 AM |
Create Button or Text | Chrissy2009 | Vizard | 1 | 07-15-2009 05:34 PM |
button events when drawing over gui elements | moooh | Vizard | 2 | 04-10-2009 01:01 AM |
button problems | cade_mccall | Vizard | 3 | 02-22-2007 09:48 AM |