Gscreen edit view of Tool Table

More
02 Jan 2020 20:24 #153814 by mmt
I'm sure this has been covered but I can't seem to find it.

I am using Gscreen Industrial Lathe on Version 2.7.14

What do I need to edit in order to see more (or less) columns in the tool table?

Thank you
Kent

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

More
02 Jan 2020 20:37 #153817 by cmorley
there are python commands to force column visibility:
linuxcnc.org/docs/2.7/html/gui/gladevcp.html#gladevcp:tooledit

Which would need to be added to a custom handler file.
Can you be specific about what you want to show/hide? Normaly used columns should automatically show.

Chris

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

More
02 Jan 2020 23:23 #153835 by mmt
Replied by mmt on topic Gscreen edit view of Tool Table
I want to display the "U" and "W" columns preferably right after the "X" and "Z" columns.

I think I would like to not display a couple other columns also.

I can edit the python file if you can point me towards its location in wheezy 2.7.14

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

More
02 Jan 2020 23:35 #153837 by Grotius
[widget name].set_visible("ijq",False)
tooltable = widgetname, you can look for the exact name in the gladevcp file, also opened in text editor geany if you have no glade install.

For example :
self.tooltable.set_visible(x,y,True)
self.tooltable.set_visible(u,v,w,False)

Or it can be :
tooltable.set_visible(x,y,True)
tooltable.set_visible(u,v,w,False)

Depending on how the gscreen (lathe) python file is constructed.
So you need to edit your current gscreen python file, can be located at : usr/share/linuxcnc.. depending of your install.

Good luck !

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

More
03 Jan 2020 00:07 #153842 by cmorley
You need to copy the file 'industrial_handler.py' from system to your configuration folder.
I bet you are using an installed version of linuxcnc so it should be in something like:
/usr/share/gscreen/skins/industrial/industrial_handler.py

After coping that file to your config file, gscreen will use it instead of the original, so if you edit it, you can change the behavior.

Then in the copied handler file look for the function: def initialize_widgets(self):

look for the line:
        self.widgets.tooledit1.set_font("sans 18")
then under that add:
        self.widgets.tooledit1.set_visible('uw',True)

Chris

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

More
04 Jan 2020 02:38 #153945 by mmt
Replied by mmt on topic Gscreen edit view of Tool Table
That fixed it Chris.

I have a new one for ya but I will start a new thread.

Thanks,
kent

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

Time to create page: 0.131 seconds
Powered by Kunena Forum