Delete "home button"

More
26 Oct 2021 08:01 #224345 by ioiotutu
Is it possible delete home button on manual tab?
I would build a custom home cycle using pyvcp button and disable or delate home button on manual tab.
Thanks.

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

More
26 Oct 2021 09:20 #224360 by phillc54
Replied by phillc54 on topic Delete "home button"
You would need to find the name of the button in axis.tcl, then you could have a .axisrc file or user_command file to hide the button.

linuxcnc.org/docs/2.8/html/gui/axis.html#_axisrc
linuxcnc.org/docs/2.8/html/gui/axis.html#_user_command_file
linuxcnc.org/docs/2.8/html/gui/axis.html#_hide_widgets
 

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

More
26 Oct 2021 10:36 - 26 Oct 2021 10:41 #224370 by nkp
Replied by nkp on topic Delete "home button"
Warning: Spoiler!

In the axisrc write the following line :
forget(widgets.homebutton, "halui.home-all")
[code]works like this:
if the pin "halui.home-all" is not in the Hal_file, then the button is not visible
[/code]
Attachments:
Last edit: 26 Oct 2021 10:41 by nkp.
The following user(s) said Thank You: phillc54

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

More
28 Oct 2021 15:40 #224590 by ioiotutu
Replied by ioiotutu on topic Delete "home button"
Work!
Thank you.

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

Time to create page: 0.234 seconds
Powered by Kunena Forum