Creating a GUI

More
06 Sep 2012 11:33 #23966 by BigJohnT
Replied by BigJohnT on topic Re:Creating a GUI
OK, I just fingered out what you mean by optional arguments. In cobra like C++ if you give an argument a default value then it is optional.

Thanks
John

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

More
06 Sep 2012 11:55 #23968 by BigJohnT
Replied by BigJohnT on topic Re:Creating a GUI
I'm trying to set up the jog increment and have added some hal radiobuttons for each increment. Can I check the state of the hal pin in my python file? Or do I have to use the signal handler and create a method for that?

Thanks
John

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

More
06 Sep 2012 13:25 #23976 by BigJohnT
Replied by BigJohnT on topic Re:Creating a GUI
Actually I think I sorted that out. In my ...toggled method I use if widget.get_active(): that works to tell me which radio button is active even though both the new and old button generate a ...toggled signal. I can smell another chapter in the gui tutorial coming up soon.

John

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

More
23 Nov 2012 22:42 #26879 by BigJohnT
Replied by BigJohnT on topic Re:Creating a GUI
I've been making a little progress understanding gtk and python lately. I've got the status bar figured out and real important to me how to change modes based on which tab is selected. I had to do some real head scratching and google-fu to find the secret code for that one.

I'll update my tutorials shortly to show the new information.

John
The following user(s) said Thank You: meduag

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

More
10 Dec 2012 07:01 - 10 Dec 2012 07:02 #27479 by cmorley
Replied by cmorley on topic Re:Creating a GUI

I've written up some documentation for the linuxcnc Python module.

www.linuxcnc.org/docs/2.5/html/common/python-interface.html

this is 'raw hide' - suggestions & improvements welcome.

- Michael


John can you please add this to the 2.5 and master docs.
It;s hidden from regular view

Chris M
Last edit: 10 Dec 2012 07:02 by cmorley.

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

More
10 Dec 2012 07:44 #27482 by BigJohnT
Replied by BigJohnT on topic Re:Creating a GUI
It is in 2.5... what do you mean it is hidden from regular view?

John

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

More
10 Dec 2012 07:49 #27483 by cmorley
Replied by cmorley on topic Re:Creating a GUI
it's in the common area.
If you use the usual links to get to the docs it won't show in the table of contents

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

More
10 Dec 2012 08:56 - 10 Dec 2012 08:56 #27486 by BigJohnT
Replied by BigJohnT on topic Re:Creating a GUI
Are you talking about the PDF docs or the HTML docs? I don't know what the usual link is...

John
Last edit: 10 Dec 2012 08:56 by BigJohnT.

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

More
10 Dec 2012 09:29 #27489 by cmorley
Replied by cmorley on topic Re:Creating a GUI
Html
not here:
www.linuxcnc.org/docs/2.5/html/

is here:
www.linuxcnc.org/docs/2.5/html/common/python-interface.html

note the /common/ in the link

Chris M

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

More
10 Dec 2012 09:32 #27490 by cmorley
Replied by cmorley on topic Re:Creating a GUI
I apologise

It is there.

something about tree for forest....:)

Chris M

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

Time to create page: 0.097 seconds
Powered by Kunena Forum