Missing buttons in gmoccapy

  • persei8
  • persei8's Avatar Topic Author
  • Offline
  • Platinum Member
  • Platinum Member
More
31 Jan 2018 21:35 - 31 Jan 2018 21:39 #105253 by persei8
Missing buttons in gmoccapy was created 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.
Last edit: 31 Jan 2018 21:39 by persei8.

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

  • auto-mation-assist
  • auto-mation-assist's Avatar
  • Offline
  • Platinum Member
  • Platinum Member
More
01 Feb 2018 21:56 - 01 Feb 2018 22:06 #105297 by auto-mation-assist
Replied by auto-mation-assist on topic Missing buttons in gmoccapy
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.
Last edit: 01 Feb 2018 22:06 by auto-mation-assist.

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

More
02 Feb 2018 00:14 - 02 Feb 2018 00:31 #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 :


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


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.
Attachments:
Last edit: 02 Feb 2018 00:31 by Grotius.

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

  • persei8
  • persei8's Avatar Topic Author
  • Offline
  • Platinum Member
  • Platinum Member
More
02 Feb 2018 03:35 #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 or Create an account to join the conversation.

More
04 Feb 2018 15:27 - 04 Feb 2018 15:28 #105406 by newbynobi
Replied by newbynobi on topic Missing buttons in gmoccapy
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
Last edit: 04 Feb 2018 15:28 by newbynobi.

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

More
04 Feb 2018 20:00 #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 or Create an account to join the conversation.

Moderators: newbynobiHansU
Time to create page: 0.083 seconds
Powered by Kunena Forum