Gscreen - a GTK / Glade / Python based screen

More
13 years 6 months ago #33266 by cmorley

jlviloria wrote: Chris,

I'm testing GScreen-industrial successfully on my lathe.

I have some doubts.

1) When starting I get the measurement in inches, but what I have in mm, in the "DRO" of gremlin out in mm, touch him twice click the button mm / inch units.

2) Do not I have all this physical buttons on my screen. is very hard for me to jog change going forward one by one. any help at this point would be very helped, I've thought about hal_scale in vcp_box, but I could not connect to LinuxCNC.

thanks in advance.


Jorge Viloria.


Glad you got it working.
If you wish to start in mm all the time, select the 'metric' button in the system / preference page.

adding a jog rate slider using HAL connections is probably not going to work satisfactory.
Doing it by using a custom handler file would integrate better.
a Jog slider is not going to be nice if you use a touch screen I think.
I am still working out of town so can not offer code examples yet.

Chris M

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

More
13 years 6 months ago #33271 by newbynobi
Jorge,

you can check the code of gmoccapy for the slider acting as jog velocity.

Norbert

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

More
13 years 6 months ago - 13 years 6 months ago #33282 by jlviloria
there is a problem with the preferences in "industrial" does not update when you give in mm or inch units, you must click on the button mm / inch to assume the change, whereas if you change GScreen perfect.

Chris thought it was some error of mine, LinuxCNC compile again, and nothing tried it on my laptop and got it.

I will review what the gmoccapy, norbert to see if I can do something, a question, I have to cancel or annul the method used by "GUI industry" or the two can work without any problem?

thanks

Jorge Viloria
Colombia
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 #33285 by newbynobi
Halo Jorge,

I have 4 lines in [DISPLAY] for DISPLAY = in my INI,

one for gscreen, one for industrial one for axis and one for gmoccapy.
I have every time3 of them commented out, so linuxcnc knows what GUI to start.

I had no problems jet, switching like this the GUI. I do this, because if I do find a bug or strange behavior, I check first with all GUI's to see from where the error may come.

But you can not include both handler files for one GUI, you may copy code from gmoccapy_handler.py to gscreen_handler.py, adapt it to your needs, but from then on you must take by your own about bugs and errors and you may have to do the changes again after an update.

Norbert

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

More
13 years 6 months ago - 13 years 6 months ago #33293 by jlviloria
hello Chris.

I thought it was a problem in my. INI file or something in my custom industrial_handler.py but delete everything. LinuxCNC compile again, I go to settings such as industry and has the same problem that does not update the units, I have to change it with the button mm / inch which is in the lower right, to see the units in mm.

I was reviewing your file gmoccapy, but this goes above me, is out of my level. I'm reading books and trying to understand the logic of programming but I'm still not even novice at this.

thanks

Hola Norbert, te escribo en español, porque en mi ingles es muy malo,

Pense que era algun problema en mi .INI, o algo en mi archivo industrial_handler.py personalizado, pero borre todo. compile nuevamente linuxcnc, voy a las configuracion de ejemplo, y industrial tiene el mismo problema que no actualiza las unidades, me toca cambiarlo con el boton mm/inch que esta en la parte inferior derecha, para poder ver las unidades en mm.

Estuve revisando tu archivo gmoccapy, pero todo esto me pasa por encima, esta fuera de mi nivel. estoy leyendo libros y tratando de entender la logica de programacion pero aun no soy nisiquiera novato en esto.

Gracias

Jorge Viloria
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 #33297 by newbynobi
Hola Jorge,

esto no es un problema tuyo, sino uno de Chris.
En industrial no adapta las unidades correctamente.

Disculpa que no quiero cambiar el code de Chris, porque no se que influencias esto podría tener a otras partes de gscreen.

Tendrás que esperar a que Chris lo corrige.

Saludos de Norbert

To all others:

this is not a problem of Jorge, but one of Chris.
In industrial_glade he does not check for the units at the begining.

Apologize, that I won't mess around in Chris code, because I do not know what influence this may have to other code of gscreen.

He will have to wait till chris is back.

Norbert

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

Time to create page: 0.158 seconds
Powered by Kunena Forum