Embedding pyVCP into an axis tab
- radar_macgyver
- Offline
- New Member
Less
More
- Posts: 10
- Thank you received: 8
02 Apr 2023 04:30 #268052
by radar_macgyver
Embedding pyVCP into an axis tab was created by radar_macgyver
I'm using axis, and would like to create a pyVCP UI that is a main window tab - along with the preview and DRO. The link below seems to indicate this is possible using the EMBED_TAB_COMMAND from the ini file:
linuxcnc.org/docs/devel/html/gui/pyvcp.html
When I tried this with 2.9.0~pre0, the panel pops up as a separate window. It does create an empty tab with the name specified under EMBED_TAB_NAME, but the actual content shows up in a separate window. Any way this can be done?
linuxcnc.org/docs/devel/html/gui/pyvcp.html
When I tried this with 2.9.0~pre0, the panel pops up as a separate window. It does create an empty tab with the name specified under EMBED_TAB_NAME, but the actual content shows up in a separate window. Any way this can be done?
Please Log in or Create an account to join the conversation.
- cmorley
- Away
- Moderator
Less
More
- Posts: 7761
- Thank you received: 2046
02 Apr 2023 04:50 #268053
by cmorley
Replied by cmorley on topic Embedding pyVCP into an axis tab
Can you try the sim demo: sim/pyvcp_demo/pyvcp_embed_tab
To see if it works there?
To see if it works there?
Please Log in or Create an account to join the conversation.
- radar_macgyver
- Offline
- New Member
Less
More
- Posts: 10
- Thank you received: 8
02 Apr 2023 07:28 #268056
by radar_macgyver
Replied by radar_macgyver on topic Embedding pyVCP into an axis tab
Interesting - I don't have that demo on my installation (it was from the Raspberry Pi iso). I have other demos for pyvcp, just nothing called pyvcp_embed_tab.
I wanted to write a custom UI to help with probing routines, and it looks like the other options (gladevcp, qtvcp) require tools like glade or qtbuilder that aren't available in the right version, at least on Debian 11 on the RPi.
I wanted to write a custom UI to help with probing routines, and it looks like the other options (gladevcp, qtvcp) require tools like glade or qtbuilder that aren't available in the right version, at least on Debian 11 on the RPi.
Please Log in or Create an account to join the conversation.
- cmorley
- Away
- Moderator
Less
More
- Posts: 7761
- Thank you received: 2046
02 Apr 2023 12:58 #268070
by cmorley
Replied by cmorley on topic Embedding pyVCP into an axis tab
It should be there - note it's not under the AXIS heading.
Please Log in or Create an account to join the conversation.
- cakeslob
- Offline
- Platinum Member
Less
More
- Posts: 784
- Thank you received: 229
02 Apr 2023 16:08 #268086
by cakeslob
Replied by cakeslob on topic Embedding pyVCP into an axis tab
Its pretty new, I would try to update linuxcnc. Its probably not included in the version you have.
Please Log in or Create an account to join the conversation.
- radar_macgyver
- Offline
- New Member
Less
More
- Posts: 10
- Thank you received: 8
02 Apr 2023 17:10 - 02 Apr 2023 17:20 #268090
by radar_macgyver
Replied by radar_macgyver on topic Embedding pyVCP into an axis tab
I must have a borked version or something:
Apt reports that I have the newest available version of linuxcnc-uspace and linuxcnc-uspace-dev. The only apt sources I have configured point to debian.org, do I need any that point to linuxcnc? The docs all stop at Buster, not sure what to include for Bullseye. There are a couple of posts on here that indicate Bullseye doesn't have an official armhf .deb.
Maybe I should just revert back to 2.8 and Buster.
pi@linuxcnc:/usr/share/doc/linuxcnc/examples/sample-configs $ find . -name '*pyvcp*'
./common/configurable_options/pyvcp
./sim/axis/halui_pyvcp
./sim/axis/halui_pyvcp/pyvcp.hal
./sim/axis/moveoff/7_pyvcp.txt
./sim/axis/moveoff/7_pyvcp.ini
./sim/axis/moveoff/7_pyvcp_es.txt
./sim/pyvcp_demo
./sim/pyvcp_demo/pyvcp_bottom_panel.ini
./sim/pyvcp_demo/pyvcp_bottom_panel.hal
./sim/pyvcp_demo/pyvcp_demo1.ini
./sim/pyvcp_demo/pyvcp_demo1.xml
./sim/pyvcp_demo/pyvcp_bottom_panel.xml
./sim/pyvcp_demo.hal
./sim/pyvcp_demo.xml
./by_machine/scorbot-er-3/pyvcp.hal
./by_machine/scorbot-er-3/pyvcp.xml
./apps/pyvcp
./apps/pyvcp/pyvcp_demo1.demo
./apps/pyvcp/pyvcp_demo1.hal
./apps/pyvcp/pyvcp_demo1_es.xml
./apps/pyvcp/pyvcp_demo1.xml
Apt reports that I have the newest available version of linuxcnc-uspace and linuxcnc-uspace-dev. The only apt sources I have configured point to debian.org, do I need any that point to linuxcnc? The docs all stop at Buster, not sure what to include for Bullseye. There are a couple of posts on here that indicate Bullseye doesn't have an official armhf .deb.
Maybe I should just revert back to 2.8 and Buster.
Last edit: 02 Apr 2023 17:20 by radar_macgyver.
Please Log in or Create an account to join the conversation.
- tjtr33
- Offline
- Elite Member
Less
More
- Posts: 165
- Thank you received: 48
23 Apr 2023 17:20 #269700
by tjtr33
Replied by tjtr33 on topic Embedding pyVCP into an axis tab
Success must depend on the LCNC version. I have 2.8.4 and tried quick and dirty copy files from github to a new subdir in ~/linuxcnc/configs. I got the new tabs but the widgets appeared in 2 seperate windows ( tabs empty). So to embed pyvcp requires update.
Multiple tabs might fill my needs but scrolling panes inside the tabs would be nice
BTW pyvcp pane can be created by scripts. I dont know is glade qtvcp pyqtvcp can do that.
Multiple tabs might fill my needs but scrolling panes inside the tabs would be nice
BTW pyvcp pane can be created by scripts. I dont know is glade qtvcp pyqtvcp can do that.
Please Log in or Create an account to join the conversation.
Time to create page: 0.191 seconds