gladeVCP not calling python handlers
- scsmith1451
-
Topic Author
- Offline
- Senior Member
-
Less
More
- Posts: 53
- Thank you received: 2
10 Sep 2025 11:03 #334764
by scsmith1451
gladeVCP not calling python handlers was created by scsmith1451
I have been struggling to understand why my gvcp handlers are not being called. I'm running LCNC 2.9.4. Maybe I don't have syntax correct or missing a configuration item. I've attached my .ui and .py files for reference. Would someone please provide guidance?
Kind Regards,
Kind Regards,
Please Log in or Create an account to join the conversation.
- cmorley
- Offline
- Moderator
-
Less
More
- Posts: 7294
- Thank you received: 2106
10 Sep 2025 13:04 #334768
by cmorley
Replied by cmorley on topic gladeVCP not calling python handlers
The 'def get_handlers(halcomp,builder,useropts):' function has the wrong indent.
It should have no indent just like the class definition.
It should have no indent just like the class definition.
The following user(s) said Thank You: scsmith1451
Please Log in or Create an account to join the conversation.
- scsmith1451
-
Topic Author
- Offline
- Senior Member
-
Less
More
- Posts: 53
- Thank you received: 2
10 Sep 2025 20:03 #334790
by scsmith1451
Replied by scsmith1451 on topic gladeVCP not calling python handlers
The 'def get_handlers(halcomp,builder,useropts):' function has the wrong indent.It should have no indent just like the class definition.Ok, I simplified my test code (see attached .py) and started to see some light at the end of the tunnel. However, When I click on either the on-min-clicked or on-max-clicked buttons, the logging shows that the call to get_factor() is written before the line identifying the handler being called (set attached .log). Further, only the first line of each handler or function is being printed, but no errors are being tossed that I can find.Any ideas?
Please Log in or Create an account to join the conversation.
- cmorley
- Offline
- Moderator
-
Less
More
- Posts: 7294
- Thank you received: 2106
11 Sep 2025 04:33 #334807
by cmorley
Replied by cmorley on topic gladeVCP not calling python handlers
This seemed to work. run from a terminal to see the print statements.
Please Log in or Create an account to join the conversation.
- scsmith1451
-
Topic Author
- Offline
- Senior Member
-
Less
More
- Posts: 53
- Thank you received: 2
11 Sep 2025 12:12 #334821
by scsmith1451
Replied by scsmith1451 on topic gladeVCP not calling python handlers
When run with gladevcp, the widgets don't become active. How do I provide the signals to activate them?
Please Log in or Create an account to join the conversation.
- cmorley
- Offline
- Moderator
-
Less
More
- Posts: 7294
- Thank you received: 2106
11 Sep 2025 15:03 #334831
by cmorley
Replied by cmorley on topic gladeVCP not calling python handlers
If you use the hal_table widget, you must set some pins active, for instance:
setp test2.button-box-active 1
setp test2.button-box-active 1
The following user(s) said Thank You: scsmith1451
Please Log in or Create an account to join the conversation.
Moderators: HansU
Time to create page: 0.093 seconds