On 8/26/23 01:09, Thomas J Powderly wrote:
Hello
I want to embed pyvcp into a tab of Axis interface.
My attempts so far got me the new tab
but the pyvcp panel ( or pyTkinter panel) is free floating.
The panel is not embedded,

There was a discussion about this on the forum
https://www.forum.linuxcnc.org/9-installing-linuxcnc/38996-new-install-now-cant-import-tkinter?start=10

There was no resolution, and the information provided suggested that an update
   linuxcnc-uspace_2.9.0~pre1+git20230208.f1270d6ed7-1_amd64.deb
would help.

No one in the discussion reported that this actually worked.
So, before I update, could someone running 2.9.0
please do this test?


Put this dummy 'pyvcptab.xml' file into your ~/linuxcnc/configs/configYouWantToTry

-------------------- begin file pyvcptab.xml -----------------------
<?xml version='1.0' encoding='UTF-8'?>
<pyvcp>
     <hbox>
         <label>
             <text>"Pyvcp Xml file in a Tab"</text>
         </label>
     </hbox>
     <hbox>
         <vbox>
             <spinbox>
                 <halpin>"spbox1f"</halpin>
                 <min_>1</min_>
                 <max_>5000</max_>
                 <initval>1</initval>
                 <resolution>1</resolution>
                 <format>"4.0f"</format>
             </spinbox>
             <button>
                 <halpin>"spbox1verify"</halpin>
                 <text>"Run"</text>
             </button>
         </vbox>
     </hbox>
</pyvcp>
-------------------- end file pyvcptab,xml -----------------------


and edit a working .ini to include this vvv  after the [DISPLAY] maker
---------------------- begin edit your .ini ---------------------------
EMBED_TAB_NAME = PyvcpTab
EMBED_TAB_COMMAND = pyvcp pyvcptab.xml
possibly the above command is wrong

I am placing a camera output in the axis backplot window with this:
EMBED_TAB_COMMAND = halcmd loadusr qtvcp -d -c cam_align -x {XID} \
 -o camnumber=0 cam_align

But ATM the camera is not available on that tab because I'm not logged in on that machines own konsole. Its sitting at a lightdm login requestor due to a remote update and reboot so usb stuff is not available for a net login.

but most of my pyvcp output goes to the right fixed panel and is definitely not "floating" And I'm running 2.10 from master.
---------------------- end edit your .ini ---------------------------

Then run LincCBC with yoour config and see if the tab appears

AND if the pyvcp widgets are on the tab or just in a free floationg pane.


There is no .hal file or stanza.

The hal pins are not connected.

That is not needed to test the tab feature.


in 2.8.0 it looks like the attached png

Which I see just fine, but john blocks any attempt by me to post a screen shot. Why am I being blocked?
Take care & stay well TomP.

Thnaks TomP


_______________________________________________
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users

Cheers, Gene Heskett.
--
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author, 1940)
If we desire respect for the law, we must first make the law respectable.
 - Louis D. Brandeis
Genes Web page <http://geneslinuxbox.net:6309/>



_______________________________________________
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to