Launching gladevcp panel with gmoccapy
- scsmith1451
-
Topic Author
- Offline
- Senior Member
-
Less
More
- Posts: 75
- Thank you received: 3
19 Apr 2026 19:26 #345745
by scsmith1451
Launching gladevcp panel with gmoccapy was created by scsmith1451
I'm struggling to launch a gladevcp panel from my gmoccapy interface. I've queried the web for examples and feel that I'm on the right track, but without success. I'm open to any suggestions.
I've attached my .ini file along with my gladevcp.ui and custom_postgui.hal for reference.
FYI - I have a laser crosshair that I use to locate the program start for a project. The laser can be toggled by either the gladevcp panel or via a toggle switch on the machine. I've wired up the machine such that either source will set an input pin high to turn on the panel LED. If the laser is toggled via the machine toggle, I want a visual indicator to remind me to turn it off manually.
Once I get the panel to display and the led to toggle properly, I may split the input to I get a visual indicating which source toggled the LED, but for now I just want to get the panel up and working. There is no custom python handler needed at this time.
I've attached my .ini file along with my gladevcp.ui and custom_postgui.hal for reference.
FYI - I have a laser crosshair that I use to locate the program start for a project. The laser can be toggled by either the gladevcp panel or via a toggle switch on the machine. I've wired up the machine such that either source will set an input pin high to turn on the panel LED. If the laser is toggled via the machine toggle, I want a visual indicator to remind me to turn it off manually.
Once I get the panel to display and the led to toggle properly, I may split the input to I get a visual indicating which source toggled the LED, but for now I just want to get the panel up and working. There is no custom python handler needed at this time.
Please Log in or Create an account to join the conversation.
- grandixximo
-
- Away
- Elite Member
-
Less
More
- Posts: 291
- Thank you received: 347
20 Apr 2026 07:46 #345755
by grandixximo
Replied by grandixximo on topic Launching gladevcp panel with gmoccapy
EMBED_TAB_LOCATION = ntb_preview
or
EMBED_TAB_LOCATION = ntb_user_tabs
Did you try these?
or
EMBED_TAB_LOCATION = ntb_user_tabs
Did you try these?
Please Log in or Create an account to join the conversation.
- Aciera
-
- Offline
- Administrator
-
Less
More
- Posts: 4691
- Thank you received: 2098
20 Apr 2026 08:26 - 20 Apr 2026 08:42 #345757
by Aciera
Replied by Aciera on topic Launching gladevcp panel with gmoccapy
Just a stab, you are loading 'custom_postgui.hal' twice, which does not make a lot of sense:
Generally it would be quite helpful if you told us what actually is not working.
Start your config from the terminal and share the output you get there.
EMBED_TAB_COMMAND = gladevcp -x {XID} crosshair-panel.ui -H custom_postgui.halPOSTGUI_HALFILE = custom_postgui.halGenerally it would be quite helpful if you told us what actually is not working.
Start your config from the terminal and share the output you get there.
Last edit: 20 Apr 2026 08:42 by Aciera.
Please Log in or Create an account to join the conversation.
- grandixximo
-
- Away
- Elite Member
-
Less
More
- Posts: 291
- Thank you received: 347
20 Apr 2026 10:46 #345764
by grandixximo
Replied by grandixximo on topic Launching gladevcp panel with gmoccapy
Also new 2.10 will not start with your .ini configuration having names with hyphens, use underscores
Please Log in or Create an account to join the conversation.
- scsmith1451
-
Topic Author
- Offline
- Senior Member
-
Less
More
- Posts: 75
- Thank you received: 3
21 Apr 2026 14:46 #345810
by scsmith1451
Replied by scsmith1451 on topic Launching gladevcp panel with gmoccapy
Yes, I've tried both, neither surfaced the gvcp panel with gmoccapy.
Please Log in or Create an account to join the conversation.
- scsmith1451
-
Topic Author
- Offline
- Senior Member
-
Less
More
- Posts: 75
- Thank you received: 3
21 Apr 2026 14:53 #345811
by scsmith1451
Replied by scsmith1451 on topic Launching gladevcp panel with gmoccapy
Attachments:
Please Log in or Create an account to join the conversation.
- HansU
-
- Offline
- Moderator
-
Less
More
- Posts: 720
- Thank you received: 216
07 May 2026 09:33 #346243
by HansU
Replied by HansU on topic Launching gladevcp panel with gmoccapy
Several errors.
1. A typo. You wrote "EMBED_TAB_HAME = CROSSHAIR" instead of "EMBED_TAB_NAME = CROSSHAIR". Unfortunately you don't get an error because the interpreter just thinks "this value is not for me".
2. you need to define where the VCP should be shown like Aciera mentioned, e.g.
Then you get a meaningful error message
This points out that you used an old glade editor. Saving it with a up-to-date Glade 3 editor (3.40 e.g.) removes this and other obsolete properties.
Then the VCP is displayed:
Further you have a handler "on-changed" defined in your glade (ui) file, but no python file where this handler is defined
1. A typo. You wrote "EMBED_TAB_HAME = CROSSHAIR" instead of "EMBED_TAB_NAME = CROSSHAIR". Unfortunately you don't get an error because the interpreter just thinks "this value is not for me".
2. you need to define where the VCP should be shown like Aciera mentioned, e.g.
EMBED_TAB_LOCATION = ntb_previewThen you get a meaningful error message
gtk-builder-error-quark: crosshair-panel.ui:12:34 Invalid property: HAL_Table.n-rows (11)This points out that you used an old glade editor. Saving it with a up-to-date Glade 3 editor (3.40 e.g.) removes this and other obsolete properties.
Then the VCP is displayed:
Further you have a handler "on-changed" defined in your glade (ui) file, but no python file where this handler is defined
AttributeError: Handler on-changed not foundAttachments:
The following user(s) said Thank You: besriworld
Please Log in or Create an account to join the conversation.
Moderators: newbynobi, HansU
Time to create page: 0.116 seconds