- User Interfaces
- GladeVCP
- GLADEVPC ui file as panel on separate window but with all HAL functionalities
GLADEVPC ui file as panel on separate window but with all HAL functionalities
- smal
- Offline
- Senior Member
Less
More
- Posts: 60
- Thank you received: 4
04 Sep 2021 17:08 - 04 Sep 2021 17:15 #219615
by smal
GLADEVPC ui file as panel on separate window but with all HAL functionalities was created by smal
Hello
I would like to run my ui file on a separate panel or window. Till now I have tried both possibilities:
1. [DISPLAY]
# add GladeVCP panel where PyVCP used to live:
GLADEVCP= ./test.ui
Where ui items appears on the right side of the AXIS GUI.
2. [DISPLAY]
# add GladeVCP panel as a tab
EMBED_TAB_NAME=GladeVCP demo
EMBED_TAB_COMMAND=gladevcp -c gladevcp -x {XID} =14.944px./test.ui
Where ui appears as tab.
But I would like to have my ui in a separate window started out of ini file with all HAL connection to linux cnc. Is this possible or I have to stick to one of two above mentioned possibilities?
Best regards
Simon
I would like to run my ui file on a separate panel or window. Till now I have tried both possibilities:
1. [DISPLAY]
# add GladeVCP panel where PyVCP used to live:
GLADEVCP= ./test.ui
Where ui items appears on the right side of the AXIS GUI.
2. [DISPLAY]
# add GladeVCP panel as a tab
EMBED_TAB_NAME=GladeVCP demo
EMBED_TAB_COMMAND=gladevcp -c gladevcp -x {XID} =14.944px./test.ui
Where ui appears as tab.
But I would like to have my ui in a separate window started out of ini file with all HAL connection to linux cnc. Is this possible or I have to stick to one of two above mentioned possibilities?
Best regards
Simon
Last edit: 04 Sep 2021 17:15 by smal. Reason: Correction
Please Log in or Create an account to join the conversation.
- tommylight
- Away
- Moderator
Less
More
- Posts: 19357
- Thank you received: 6480
04 Sep 2021 17:58 #219617
by tommylight
Replied by tommylight on topic GLADEVPC ui file as panel on separate window but with all HAL functionalities
Not on a LinuxCNC PC, but have a look at APP, ini file can contain an app section and start apps together with LinuxCNC, used it to start Gremlin back in the days.
In the included SIM configs there is axis/PlasmaC and axis/corexy that use it.
In the included SIM configs there is axis/PlasmaC and axis/corexy that use it.
Please Log in or Create an account to join the conversation.
- cmorley
- Away
- Moderator
Less
More
- Posts: 7757
- Thank you received: 2043
05 Sep 2021 07:21 #219654
by cmorley
Replied by cmorley on topic GLADEVPC ui file as panel on separate window but with all HAL functionalities
try something like this:
[HAL]
HALCMD = loadusr gladevcp -c gladevcp =14.944px./test.ui
Please Log in or Create an account to join the conversation.
- smal
- Offline
- Senior Member
Less
More
- Posts: 60
- Thank you received: 4
05 Sep 2021 08:01 - 05 Sep 2021 08:02 #219655
by smal
Replied by smal on topic GLADEVPC ui file as panel on separate window but with all HAL functionalities
Hi Tommy
I have made it in that way:
[APPLICATIONS]
DELAY=0
APP=gladevcp test.ui
And it worked according to my expectations. Thanks for the tip.
But now I am facing another problem. I would like to change color of the windows which I have made in Glade but there is no option to do it.
Problems of the same kind applies also to spinbutton which I created. I see no possibilities to change the color of the spinbox. I would also like to have a HAL pin control over maximum and minimum value, to readout the value and to set it from outside. For the moment there is only an output. But how to set this value?
Or it is a better idea to leave Glade and use Qt instead?
At which point Python comes int the play making GUIs with Glade?
I have made it in that way:
[APPLICATIONS]
DELAY=0
APP=gladevcp test.ui
And it worked according to my expectations. Thanks for the tip.
But now I am facing another problem. I would like to change color of the windows which I have made in Glade but there is no option to do it.
Problems of the same kind applies also to spinbutton which I created. I see no possibilities to change the color of the spinbox. I would also like to have a HAL pin control over maximum and minimum value, to readout the value and to set it from outside. For the moment there is only an output. But how to set this value?
Or it is a better idea to leave Glade and use Qt instead?
At which point Python comes int the play making GUIs with Glade?
Last edit: 05 Sep 2021 08:02 by smal.
Please Log in or Create an account to join the conversation.
- smal
- Offline
- Senior Member
Less
More
- Posts: 60
- Thank you received: 4
05 Sep 2021 08:05 #219656
by smal
Replied by smal on topic GLADEVPC ui file as panel on separate window but with all HAL functionalities
Hello
I have tried this:
HALCMD = loadusr gladevcp -c gladevcp = ./test.ui
putting it where my other [HAL] stuff is but it did not work.
Thanks anyway.
I have tried this:
HALCMD = loadusr gladevcp -c gladevcp = ./test.ui
putting it where my other [HAL] stuff is but it did not work.
Thanks anyway.
Please Log in or Create an account to join the conversation.
- cmorley
- Away
- Moderator
Less
More
- Posts: 7757
- Thank you received: 2043
05 Sep 2021 16:59 #219682
by cmorley
You can set the theme with -t option. other adjustments like specific colors require python code.
Replied by cmorley on topic GLADEVPC ui file as panel on separate window but with all HAL functionalities
Well it should work - was there an error?Hello
I have tried this:
HALCMD = loadusr gladevcp -c gladevcp = ./test.ui
putting it where my other [HAL] stuff is but it did not work.
Thanks anyway.
You can set the theme with -t option. other adjustments like specific colors require python code.
Please Log in or Create an account to join the conversation.
- smal
- Offline
- Senior Member
Less
More
- Posts: 60
- Thank you received: 4
05 Sep 2021 18:54 #219688
by smal
Replied by smal on topic GLADEVPC ui file as panel on separate window but with all HAL functionalities
Hi cmorley
There was no error message. Just no window. Linux CNC loaded as usual with full functionality except no window with test.ui items.
Can you go deeper into detail how to make the GUI with python code? Is Glade still used in this process?
There was no error message. Just no window. Linux CNC loaded as usual with full functionality except no window with test.ui items.
Can you go deeper into detail how to make the GUI with python code? Is Glade still used in this process?
Please Log in or Create an account to join the conversation.
- cmorley
- Away
- Moderator
Less
More
- Posts: 7757
- Thank you received: 2043
05 Sep 2021 19:56 #219694
by cmorley
Replied by cmorley on topic GLADEVPC ui file as panel on separate window but with all HAL functionalities
If you run linuxcnc from a terminal there would be a error message for the gladevcp program - most likely the = sign is the problem.
This describes programming in detail.
linuxcnc.org/docs/2.8/html/gui/gladevcp....gladevcp:programming
Though you need to know about GTK programming to know how to change what you wish.
If you just want to change something simple try the -U option.
Significant modifications requires using a python handler file.
Chris
This describes programming in detail.
linuxcnc.org/docs/2.8/html/gui/gladevcp....gladevcp:programming
Though you need to know about GTK programming to know how to change what you wish.
If you just want to change something simple try the -U option.
Significant modifications requires using a python handler file.
Chris
Please Log in or Create an account to join the conversation.
- newbynobi
- Offline
- Platinum Member
Less
More
- Posts: 2075
- Thank you received: 406
19 Sep 2021 20:30 - 19 Sep 2021 20:34 #221148
by newbynobi
Replied by newbynobi on topic GLADEVPC ui file as panel on separate window but with all HAL functionalities
Look at the Sim gmoccapy folder for the INI with simulated hardware button.
The glade panels are set with xy Coordinates on the screen.
Norbert
EMBED_TAB_NAME = left_side_panel
EMBED_TAB_LOCATION = box_left
EMBED_TAB_COMMAND = gladevcp -g 64x697+997+10 -H v_buttonlist.hal v_buttonlist.glade
The glade panels are set with xy Coordinates on the screen.
Norbert
EMBED_TAB_NAME = left_side_panel
EMBED_TAB_LOCATION = box_left
EMBED_TAB_COMMAND = gladevcp -g 64x697+997+10 -H v_buttonlist.hal v_buttonlist.glade
Last edit: 19 Sep 2021 20:34 by newbynobi.
Please Log in or Create an account to join the conversation.
Moderators: HansU
- User Interfaces
- GladeVCP
- GLADEVPC ui file as panel on separate window but with all HAL functionalities
Time to create page: 0.074 seconds