How to connect buttons and files.

More
07 Feb 2012 23:46 #17498 by phillc54
Hi,

I am using GladeVCP with LinuxCNC 2.5 and I am able to call a Python file as a child of Axis by having the button code call axis-remote to open a file as follows:

def on_button0_press(self,widget,data=None):
os.system('axis-remote /path/to/filename0.py')

def on_button1_press(self,widget,data=None):
os.system('axis-remote /path/to/filename1.py')

This has worked with all the druids (wizards?) I have tried from the Simple_LinuxCNC_G-Code_Generators page.

Cheers, Phill

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

Time to create page: 0.879 seconds
Powered by Kunena Forum