Creating a GUI

More
05 Aug 2012 19:12 #22861 by cmorley
Replied by cmorley on topic Re:Creating a GUI
I like it !
You know John as a gladeVCP widgets I guess we really only need the number labels to be widgets.
Then a user is free to place them as he sees fit.

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

More
05 Aug 2012 19:13 #22862 by cmorley
Replied by cmorley on topic Re:Creating a GUI
don't tools have Y offsets?

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

More
05 Aug 2012 19:24 - 05 Aug 2012 19:26 #22864 by BigJohnT
Replied by BigJohnT on topic Re:Creating a GUI
Well yes and the Y tool offset will be in the next revision. Well in the case of my lathe it doesn't have any Y offsets...

When I right click on a vertical box and add widget as top level it won't let me click on the contents I have to go to the Inspector tree thing to select a label for editing... did I miss a step?

Yea, if they can do like a vertical box and select how many they want if that is what your saying?

John
Last edit: 05 Aug 2012 19:26 by BigJohnT.

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

More
05 Aug 2012 19:33 #22866 by cmorley
Replied by cmorley on topic Re:Creating a GUI
Don't worry about the top level thing i can adjust later.

Thinking out loud here...
no I'm saying the only thing really important is labels that display for instance x (and y and z ....) position.

What I am saying is If I make a widget like your demo then if a user wants it horizontal (like TOUCHY's) then he is outta luck.
If I make 'axis','tool offset' and 'coordinate offset' widgets which are just labels then a user can put them anyway they like.
Or we could do both.... I'll fool around a bit.

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

More
05 Aug 2012 19:39 #22867 by BigJohnT
Replied by BigJohnT on topic Re:Creating a GUI
I like the idea of just having labels that display information from emc_stat or where ever it comes from. I agree that being able to build your own DRO from the EMC Widgets would be the best way to go.

John

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

More
05 Aug 2012 20:02 #22870 by BigJohnT
Replied by BigJohnT on topic Re:Creating a GUI
Speaking of that, is there a simple way in the python to get say for example the relative X axis position and display that on a Gtk Label? Is that what emc_interface.py does somehow? If you have a template on how to do something like that the rest is cooky cutter work.

Thanks
John

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

More
05 Aug 2012 20:33 #22873 by cmorley
Replied by cmorley on topic Re:Creating a GUI
yes in emc_interface, emc_status does the status updates (including position and offsets)
import linuxcnc is done in gscreen and passed to emc_interface.

linuxcnc is the module that exposes control and status of linuxcnc to python

Chris M

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

More
05 Aug 2012 21:10 #22875 by BigJohnT
Replied by BigJohnT on topic Re:Creating a GUI
Ok, I found I think the code in gscreen and changed it to my file name...
import linuxcnc
from jtgui import emc_interface
from jtgui import mdi
from jtgui import preferences

And jtgui does load up without errors :)

Let me see if I can find the next piece of the puzzle...

John

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

More
05 Aug 2012 21:25 #22876 by BigJohnT
Replied by BigJohnT on topic Re:Creating a GUI
Well actually it didn't run... No module named jtgui...

John

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

More
05 Aug 2012 21:36 - 05 Aug 2012 21:42 #22877 by BigJohnT
Replied by BigJohnT on topic Re:Creating a GUI
Hmm, does have anything to do with lib/python/gscreen???

I'd bet it does...

Well I have moved on to a new error cannot import name set_active... making progress.

John
Last edit: 05 Aug 2012 21:42 by BigJohnT.

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

Time to create page: 0.090 seconds
Powered by Kunena Forum