Hello,

I tried to change versions from 2.5 master to 2.6.5 on an linuxcnc
installation and noticed a regression. The radiobutton does not select its
iniital value on startup. I have not yet looked into the other pyvcp
widgets to check if the same problem exists with them too.

I am using a pvcp based side panel. Please have a look at this small pyvcp
example which I ripped out of my larger real world side panel to reproduce
the regression:

<pyvcp>
  <vbox>
    <labelframe>
      <text>"Material Thickness Selection"</text>
      <relief>RIDGE</relief>
      <bd>3</bd>
      <hbox>
        <vbox>
          <radiobutton>
            <choices>["1mm", "2mm", "3mm"]</choices>
            <halpin>"choice"</halpin>
            <initval>2</initval>
          </radiobutton>
        </vbox>
      </hbox>
    </labelframe>
  </vbox>
</pyvcp>

With 2.6.5:
$ halrun
halcmd: loadusr pyvcp -c radio_button_test radio_button_test.xml
halcmd: show pin
Component Pins:
Owner   Type  Dir         Value  Name
     5  bit   OUT         FALSE  radio_button_test.choice.1mm
     5  bit   OUT         FALSE  radio_button_test.choice.2mm
     5  bit   OUT         FALSE  radio_button_test.choice.3mm

No pin is selected on startup at all, even though I specified an initval of
2, i.e. I expected that the 3mm material should have been selected. I
believe this is an error.

With 2.5:
$ halrun
halcmd: loadusr pyvcp -c radio_button_test radio_button_test.xml
halcmd: show pin
Component Pins:
Owner   Type  Dir         Value  Name
     5  bit   OUT         FALSE  radio_button_test.choice.1mm
     5  bit   OUT         FALSE  radio_button_test.choice.2mm
     5  bit   OUT          TRUE  radio_button_test.choice.3mm

Here the initval's choice in the radiobutton is selected as I expected on
startup.

Or am I missing something here on the upgrade from 2.5 to 2.6 ?

BR
Max.
------------------------------------------------------------------------------
New Year. New Location. New Benefits. New Data Center in Ashburn, VA.
GigeNET is offering a free month of service with a new server in Ashburn.
Choose from 2 high performing configs, both with 100TB of bandwidth.
Higher redundancy.Lower latency.Increased capacity.Completely compliant.
http://p.sf.net/sfu/gigenet
_______________________________________________
Emc-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to