Embed tabs python file is not run.

More
05 Feb 2021 12:36 #197738 by Stormholt
I was recently tasked to create a new tab, however the python file for the tab does not seem to be run at any point. I have mostly copied code from another tab we created that works just fine.
When running linuxcnc the tab is created, however buttons etc. does not work how they should. The hal file is also run because i receive an error for a pin that does not exist, because the pin is created first thing in the python file. Additionally print methods called first thing in the init file are not shown as would be if run in other tabs's python file.

I have used these commands in my ini-file:
EMBED_TAB_NAME=Measure
EMBED_TAB_COMMAND=halcmd loadusr -Wn measure gladevcp -c measure -u measure.py -x {XID} -H measure.hal measure.ui
The command is identical to other tab calls that work.
I have created the ui with glade-gtk2.
Additionally i have made sure that i have full permission for the python-file.

Have anyone encountered this before ?
Thanks in advance

Please Log in or Create an account to join the conversation.

More
05 Feb 2021 12:42 #197739 by cmorley
please post your config files

Please Log in or Create an account to join the conversation.

More
05 Feb 2021 13:04 - 05 Feb 2021 13:04 #197740 by Stormholt
Thank you for your fast response!

I restarted, copied a working tabs files and gradually replaced the code with what i wanted, and now somehow it work, even though the code are identical to the non-working one.

Sorry for any inconvenience!
Last edit: 05 Feb 2021 13:04 by Stormholt.

Please Log in or Create an account to join the conversation.

Moderators: HansU
Time to create page: 0.100 seconds
Powered by Kunena Forum