![]() |
|
|
|
#1
|
|||
|
|||
|
I tried this but it gave me an error:
Code:
Traceback (most recent call last):
File "<string>", line 12, in ?
File "buttonsTest2.py", line 96, in ?
button = viz.add(viz.BUTTON,buttonLabel)
File "C:\Program Files\Vizard25\viz.py", line 4881, in add
return addbutton(*args)
File "C:\Program Files\Vizard25\viz.py", line 4102, in addbutton
return VizCheckBox(_ipcSendHold(_VIZ_ADDCHECKBOX,scene-1,1,'',int(parent),0,0,0))
TypeError: unsupported operand type(s) for -: 'str' and 'int'
|
|
#2
|
|||
|
|||
|
The code should be:
Code:
button = viz.add(viz.BUTTON_LABEL,buttonLabel) |
|
#3
|
|||
|
|||
|
Ok, thank you. I think i found a new approach. What I did is create a button in GUI field in vizard and if I click on the button, it displays the letter I want. The question I have now is how can I put a label on the button that I created in the GUI field. Is it the same as creating a label for a button that I made using coding?
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|