Hi Gene,
The problem seems to be with <disable>False</disable> and what a
strange error that returns lol, I think that is only for other widgets
not for the multi_label.
panel.xml
<?xml version='1.0' encoding='UTF-8'?>
<pyvcp>
<!--
Include your PyVCP panel here.
-->
<multilabel>
<legends>["Label1","Label2","Label3"]</legends>
<font>("Helvetica",20)</font>
</multilabel>
<radiobutton>
<choices>["one","two","three"]</choices>
<halpin>"my-radio"</halpin>
<initval>0</initval>
</radiobutton>
</pyvcp>
postgui.hal
# Include your customized HAL commands here
# The commands in this file are run after the AXIS GUI (including PyVCP
panel) starts
sets spindle-at-speed true
net lbl-1 pyvcp.my-radio.one => pyvcp.multilabel.0.legend0
net lbl-2 pyvcp.my-radio.two => pyvcp.multilabel.0.legend1
net lbl-3 pyvcp.my-radio.three => pyvcp.multilabel.0.legend2
JT
On 4/22/2017 7:40 PM, Gene Heskett wrote:
> Hi John;
>
> Not atm. Straight out of the sample in section 6.4, with the label count
> trimmed to 2 quoted strings, it only generates a single pyvcp.label0,
> which without a net connection is stuck true and displays both quoted
> labels merged into one string.
>
> I an assuming the strings "string1" "string2" are just the labels to be
> displayed when the match halpin is true and can be anything printable.
>
> Lemme add it back into the .xml and see if I can figure it out again.
> Here is what 6.4 says:
> <multilabel>
> <legends>["Label1" "Label2" "Label3" "Label4" "Label5"
> "Label6"]</legends>
> <font>("Helvetica",20)</font>
> <disable>False</disable>
> </multilabel>
>
>
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Emc-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-users