gladeVCP not calling python handlers

More
1 year 1 month ago #334764 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,

Please Log in to join the conversation.

More
1 year 1 month ago #334768 by cmorley
The 'def get_handlers(halcomp,builder,useropts):' function has the wrong indent.
It should have no indent just like the class definition.

Please Log in to join the conversation.

More
1 year 1 month ago #334790 by scsmith1451

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 to join the conversation.

More
1 year 1 month ago #334807 by cmorley
This seemed to work. run from a terminal to see the print statements.

Please Log in to join the conversation.

More
1 year 1 month ago #334821 by scsmith1451
When run with gladevcp, the widgets don't become active. How do I provide the signals to activate them?

Please Log in to join the conversation.

More
1 year 1 month ago #334831 by cmorley
If you use the hal_table widget, you must set some pins active, for instance:
 setp test2.button-box-active 1

 

Please Log in to join the conversation.

Time to create page: 0.126 seconds
Powered by Kunena Forum