Gscreen - a GTK / Glade / Python based screen

More
13 years 6 months ago #32511 by cmorley
The preference file is located in your home directory (most likely your name)
It's hidden so you must select 'show hidden files' in the browser.

If you are using Industrial the the glade file and handler file will need to be in your config folder. (copied from the sim/gscreen_custom folder)

If you are using default Gscreen the you must copy Gscreens glade file and make a handler file.

I use gedit to edit python. and you use GLADE editor to change the GLADE file.
You must run glade from a terminal after entering . scripts/rip-evironment

GLADE editing takes some time to get quick at.
I hope this helps/

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

More
13 years 6 months ago #32512 by cmorley
Did the keybindings work out?

Chris M

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

More
13 years 6 months ago - 13 years 6 months ago #32514 by jlviloria
Cmorley,

hello sorry you bother.

GScreen trying to get, I see you did the ToolEdit in glade. copy your files (tooledit.widget.py and tooledit.gtk.glade) in /sim/axis and try to embed on screen AXIS, but I get an error. I gave the path to my file. TBL.

But it has not been unsuccessful. is that I have no knowledge of programming, if I ask your help,








In advance thank you very much for your attention.

jorge
Last edit: 13 years 6 months ago by jlviloria.

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

More
13 years 6 months ago #32596 by newbynobi
Hallo Jorge,

I think axis is tkinter and not glade, I am wondering if this will work together?

Norbert

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

More
13 years 6 months ago #32598 by newbynobi
Hallo Chris,

I am getting crazy with the self.data.estopped

After starting gmoccapy self.data.estopped is every time TRUE, it does not matter, if my emergency button is pressed or not.

I think this is a bug, because it should represent the emc status of ESTOP, shouldn't it?

You do a periodic check on this to activate your LED, but I do change button images. If I use a periodic to check, my screen is getting really slow, because the python code will refresh every 100 ms the image.

I do the checks of the state with hal_status, but I have to set the initial state just after the start, from then on my code is working fine.
So the question is, how can I get in my INIT Code the correct status of self.data.estopped

Norbert

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

More
13 years 6 months ago #32610 by LAIR82

cmorley wrote: The preference file is located in your home directory (most likely your name)
It's hidden so you must select 'show hidden files' in the browser.

If you are using Industrial the the glade file and handler file will need to be in your config folder. (copied from the sim/gscreen_custom folder)

If you are using default Gscreen the you must copy Gscreens glade file and make a handler file.

I use gedit to edit python. and you use GLADE editor to change the GLADE file.
You must run glade from a terminal after entering . scripts/rip-evironment

GLADE editing takes some time to get quick at.
I hope this helps/


Hello Chris,

Its been a madhouse at our shop, I've had a machining center down since monday with a bad servo, so I haven't been able to play my gscreen machine at all this week. Hopefully by monday I can let you know how the keybindings work. Actually, could you give me an example of what the line would look like to change a binding, I want to change the left/right jog buttons to be axis 2 instead of 1.

I see my preferences file now. So I need to be in the /scripts/rip-environment directory then run glade from the command line. Making sense so far. What would the command be for starting glade?

Thanks

Rick

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

Time to create page: 0.770 seconds
Powered by Kunena Forum