Missing buttons in gmoccapy

More
8 years 8 months ago #105253 by persei8
version 2.3.3.2 master branch
After power on, home all, then select touchoff menu, then edit offsets. After changing the value of one of the offsets and hitting Enter, the following error prints to the console:

**** GMOCCAPY ERROR ****
**** No widget named: btn_zero_y to sensitize ****
Traceback (most recent call last):
File "/home/jim/linuxcnc-dev/bin/gmoccapy", line 2416, in _sensitize_widgets
self.widgets[name].set_sensitive(value)
File "/home/jim/linuxcnc-dev/lib/python/gmoccapy/widgets.py", line 42, in __getitem__
raise IndexError, "No widget %widget" % attr
ValueError: unsupported format character 'w' (0x77) at index 11
**** GMOCCAPY ERROR ****
**** No widget named: btn_zero_z to sensitize ****
Traceback (most recent call last):
File "/home/jim/linuxcnc-dev/bin/gmoccapy", line 2416, in _sensitize_widgets
self.widgets[name].set_sensitive(value)
File "/home/jim/linuxcnc-dev/lib/python/gmoccapy/widgets.py", line 42, in __getitem__
raise IndexError, "No widget %widget" % attr
ValueError: unsupported format character 'w' (0x77) at index 11
MANUAL Mode

In the glade file, there are indeed no buttons called btn_zero_x, btn_zero_y or btn_zero_z.
Jim

edit: I missed part of the error message, but the one for btn_zero_x is there too.

Please Log in to join the conversation.

More
8 years 8 months ago #105297 by auto-mation-assist
I think that that button is actually part of the offset page which is a tabbed page in the glade file and may be defined there as a item number in the list of buttons. I would have to dig a little deeper.

It is possible that glade has lost you offset page. I run the development versions so for me I would just copy a good gmoccapy.glade and gmoccapy.py files to the location in /src/emc/usr_intf/gmoccapy and compile, or if you have modified those files in the past a backup copy.

Please Log in to join the conversation.

More
8 years 8 months ago #105303 by Grotius
Replied by Grotius on topic Missing buttons in gmoccapy
@Persie,

Strange, In glade the button is not available, the closest button over there is zero_g92

But in the python file you see one line of this button :

Attachment not found



I did a short test as you described, by me it works fine :

Attachment not found



Maybe you have done something wrong in your past screen development.
Advise : install a second clean backup version to test if there are problems.
I have now running 3 separate versions of linuxcnc on my pc only for testing different versions.
But that is only because i am developping some things, normal users don't have trouble.

Please Log in to join the conversation.

More
8 years 8 months ago #105310 by persei8
Replied by persei8 on topic Missing buttons in gmoccapy
Well whatever happened, I fixed it. Now I have 3 buttons to quickly zero the X, Y and Z without the calculator popping up. I also rearranged the buttons nearly back to how they were in the original and restored the homing button bar. I think a little bit of python is finally sinking in. :)

Please Log in to join the conversation.

More
8 years 8 months ago #105406 by newbynobi
That was a bug, I missed deleting the button in that list when I deleted them from the glade file.

I fixed that and I am about to push the fix in a moment.

Norbert

Please Log in to join the conversation.

More
8 years 8 months ago #105415 by Grotius
Replied by Grotius on topic Missing buttons in gmoccapy
@Norbert,

It was not a bug.
It was coincidence that the extra button was present at that time.

Please Log in to join the conversation.

Time to create page: 0.179 seconds
Powered by Kunena Forum