Updating Old GladeVCP Files?
- Todd Zuercher
-
Topic Author
- Offline
- Platinum Member
-
Less
More
- Posts: 4713
- Thank you received: 1444
13 Mar 2026 10:13 #344205
by Todd Zuercher
Updating Old GladeVCP Files? was created by Todd Zuercher
I am working on updating the control an older Linuxcnc machine. I need to make some modifications of the old GladeVCP it uses. Are there any steps or instructions for updating older GladeVCP files (from Linuxcnc 2.7) to current versions of GTK/Glade for Linuxcnc?
Please Log in or Create an account to join the conversation.
- Todd Zuercher
-
Topic Author
- Offline
- Platinum Member
-
Less
More
- Posts: 4713
- Thank you received: 1444
18 Mar 2026 18:13 #344478
by Todd Zuercher
Replied by Todd Zuercher on topic Updating Old GladeVCP Files?
I'm still not getting anywhere with this. This GadeVCP worked fine with Linuxcnc 2.7 on Debian 7, but on the upgraded control PC running Linuxcnc 2.9 on Debian 13, The Python handler file doesn't seem to work. The problem is that it isn't creating any of the hal pins that it used to. I've tried this with several different GladeVCPs that I had created a number of years ago for these machines. and all of them are giving similar issues.
Please Log in or Create an account to join the conversation.
- Aciera
-
- Offline
- Administrator
-
Less
More
- Posts: 4666
- Thank you received: 2080
18 Mar 2026 19:18 - 18 Mar 2026 19:43 #344482
by Aciera
Replied by Aciera on topic Updating Old GladeVCP Files?
The first thing I'd try is to load your glade file in the Glade (Version 3) editor and save it.
Also check for error output when starting your config from a terminal.
Also check for error output when starting your config from a terminal.
Last edit: 18 Mar 2026 19:43 by Aciera.
Please Log in or Create an account to join the conversation.
- rodw
-
- Offline
- Platinum Member
-
Less
More
- Posts: 11771
- Thank you received: 3986
18 Mar 2026 22:47 #344492
by rodw
Replied by rodw on topic Updating Old GladeVCP Files?
Not able to help here but this is a continuation of the deprecation of Python 2.7 back when Debian Bullseye (v 11) was released. You need to convert your handler to Python 3.
Please Log in or Create an account to join the conversation.
- Todd Zuercher
-
Topic Author
- Offline
- Platinum Member
-
Less
More
- Posts: 4713
- Thank you received: 1444
20 Mar 2026 12:11 #344543
by Todd Zuercher
Replied by Todd Zuercher on topic Updating Old GladeVCP Files?
I have opened, modified and re-saved the Glade file in the newer Glade editor. The Glade file seems to open fine but none of the hal pins created in the handler file show up. But I have no idea how to fix the Python file. I tried running it through 2to3 but it didn't find anything to change. I REALY don't understand Python and I was barely able to make this one sort of work originally. (The fact that most of the included Linuxcnc example config files don't seem to work for similar reasons isn't helping.)
Please Log in or Create an account to join the conversation.
- MaHa
- Offline
- Platinum Member
-
Less
More
- Posts: 512
- Thank you received: 218
20 Mar 2026 14:18 - 20 Mar 2026 14:20 #344550
by MaHa
Replied by MaHa on topic Updating Old GladeVCP Files?
I tried something with your files. This changes made the pins show up, but still many errors displayed in terminal.
I tried something with your files. This changes made the pins show up, but still many errors displayed in terminal.
I tried something with your files. This changes made the pins show up, but still many errors displayed in terminal.
#!/usr/bin/env python3
import hal_glib
import hal
#import pango
from gi.repository import Pango
Last edit: 20 Mar 2026 14:20 by MaHa.
Please Log in or Create an account to join the conversation.
- Todd Zuercher
-
Topic Author
- Offline
- Platinum Member
-
Less
More
- Posts: 4713
- Thank you received: 1444
20 Mar 2026 19:20 #344555
by Todd Zuercher
Replied by Todd Zuercher on topic Updating Old GladeVCP Files?
Changing that does not make the hal pins from the call back file work for me. I can only see the hal pins created by the hal glade widgets.
Please Log in or Create an account to join the conversation.
- Aciera
-
- Offline
- Administrator
-
Less
More
- Posts: 4666
- Thank you received: 2080
20 Mar 2026 19:30 - 20 Mar 2026 19:34 #344556
by Aciera
Replied by Aciera on topic Updating Old GladeVCP Files?
Last edit: 20 Mar 2026 19:34 by Aciera.
The following user(s) said Thank You: Todd Zuercher
Please Log in or Create an account to join the conversation.
- Todd Zuercher
-
Topic Author
- Offline
- Platinum Member
-
Less
More
- Posts: 4713
- Thank you received: 1444
20 Mar 2026 20:02 #344557
by Todd Zuercher
Replied by Todd Zuercher on topic Updating Old GladeVCP Files?
Thanks that's at least a big step in the right direction. Now I just need to get the label change working again. (That's what all the Pango stuff did) It was supposed to change the ZW at the top center to ZZ and change the color of it when the "gladevcp.label-trigger" hal pin changed to true.
Please Log in or Create an account to join the conversation.
- MaHa
- Offline
- Platinum Member
-
Less
More
- Posts: 512
- Thank you received: 218
21 Mar 2026 01:52 #344559
by MaHa
Replied by MaHa on topic Updating Old GladeVCP Files?
The following user(s) said Thank You: Todd Zuercher, tommylight
Please Log in or Create an account to join the conversation.
Moderators: HansU
Time to create page: 2.998 seconds