Gmoccapy - A new screen for linuxcnc

More
12 years 10 months ago #41561 by newbynobi
Replied by newbynobi on topic Gmoccapy - A new screen for linuxcnc
Marius,

to upload a python file, just rename it from py to txt, it is not allowed to upload for security reasons.

Norbert

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

More
12 years 10 months ago #41562 by newbynobi
Replied by newbynobi on topic Gmoccapy - A new screen for linuxcnc
Hallo Marius,

I just saw, you did the signal connections in the glade file. That is normally no problem, and would work in most circumstances, but this is a very special case, as the GUI will be re parented as embedded window, so the connections will not go through. OK, that is not the exact trues, they do not come through, because the are in the plasma class, and we do need that class, to get the widgets to python code. And that is needed to save later on the states on exit.

Like Michael told me long time ago, you get this way a longer rope to hang up yourself ;-)

And please, take names for the widgets that do tell the meaning of the widget, button2 will not be as easy as btn_THC_speed_minus.

Norbert

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

More
12 years 10 months ago - 12 years 10 months ago #41563 by newbynobi
Replied by newbynobi on topic Gmoccapy - A new screen for linuxcnc
Hallo Marius,

here is the modified plasma glade file.
I did not change the button to hal button and I do not know why you are using hal boxes.

Norbert

Please rename the file to plasma.glade
Attachments:
Last edit: 12 years 10 months ago by newbynobi.

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

More
12 years 10 months ago #41564 by mariusl
Replied by mariusl on topic Gmoccapy - A new screen for linuxcnc
Hi Norbert

I have not named anything correctly just yet. I am just trying to get the hang of things. I will name the stuff according to your standard.

The buttons must just increase and decrease the value of the hal label

It still fits as I will remove the first frame once I have renamed the objects correctly.

This looks like a lot of trouble for someone like me who know zip about python. But I will try.

Thanks for helping, I do appreciate it very much.

Regards
Marius


www.bluearccnc.com

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

More
12 years 10 months ago #41565 by mariusl
Replied by mariusl on topic Gmoccapy - A new screen for linuxcnc
OK I can see the button event. HeHe.

Regards
Marius


www.bluearccnc.com

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

More
12 years 10 months ago #41567 by newbynobi
Replied by newbynobi on topic Gmoccapy - A new screen for linuxcnc
Hallo Marius,

You want to increase a hal label?
That is not possible!
A hal label is an in pin, so it can only indicate a given hal pin value.

If I try to follow you, you want the buttons to change a hal value. It is easier to connect hal buttons to a hal component that increase a hal value and just display that value in the hal label.

Doing this in python is posible, but for a beginner not easy.

If you explain what functions the buttons should control, I will try to implement them.

Norbert, getting slowly crasy, because remap code for tool measurement seems to destroy my work.

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

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