Gmoccapy - A new screen for linuxcnc

More
9 years 7 months ago #90052 by newbynobi
Hallo,

it should be possible, as gmoccapy uses the hal_gremlin glade widget.
Just look at the code of /lib/python/gladevcp/hal_gremlin.py

Within gmoccapy the widget is called: self.widgets.gremlin

Norbert

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

More
9 years 7 months ago #90097 by Patrik T
OK, thanks, but how do I get a reference to "self" in the self.widgets.gremlin?
When I write "self" it refers to my class instance. I need to refer to the Gmoccapy class instance.

Naively I would want something like:

Code:
self.gmoccapy = self.top_level.get_parent() # I need a reference to the Gmoccapy python class / handler. self.gmoccapy.widgets.gremlin.clear()

Patrik

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

More
9 years 7 months ago #90140 by newbynobi
You are right. Have you in your code:

from gmoccapy import gmoccapy

after that you should be able to do something like:

gmoccapy.widgets.gremlin.clear()

All out of memory, I am not on my native computer.

Norbert

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

More
9 years 7 months ago #90169 by Patrik T
Cool, that is what I am asking for. But I cant get it to work.
May I ask you to look at it again when you are back at your computer, please.

Thanks again
Patrik

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

More
9 years 7 months ago #90217 by newbynobi
Of course, please push your config with your handler file, so I have a testing environment.

Norbert

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

More
9 years 7 months ago #90374 by dhanger
Hi Norbert-

Comments and a question--I have been using LinuxCNC with Axis for several years on a router I built, I have just recently converted a DM4400 mill to LinuxCNC, added a touch screen, and started using Gmoccapy for the first time. Thank you very much for all your effort on this, I love it. I attached a picture of the machine set up in my garage.

My question is, while using Axis it automatically included a check box for my spindle brake, but that is not available in the default setup for Gmoccapy (or else I just can't see it). I am assuming I will need to add that myself, but I don't know how it's done. Can you point me in the right direction for how to do that please, I would appreciate it. I need to be able to disable the brake while doing setups on the machine.

Dan

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

Moderators: newbynobi, HansU
Time to create page: 0.606 seconds
Powered by Kunena Forum