These are code snippits to build Hotkeys in PathPilot. There are usefull in all version 2.0 and up. To use you DO have to modify PathPilot's tormach_mill_ui.py file. IF you mess up with the mod it CAN and will crash PathPilot on loading. Then you will need to know HOW to go back and fix it. That part is a seperate discussion (;-) To use open the tormach_mill_ui.py file. I use Gedit to edit the file. Do a search of the file for the words " # Escape key for stop ". That will put you in the area you need to modify. It is IN one of PathPilot's Monitoring LOOPS. That way PathPilot sees it all the time. WARNING: PathPilot is extremly case and indent sensitive. Look at the sections of code above and below where you are working to make sure everything lines up. Then Make sure you save the file (;-) Been there done that. What the hotkey does is when you press it it switches you directly to that page without having to use a mouse Insert the code snipit after that section. # Escape key for stop if kv == gtk.keysyms.Escape: self.error_handler.log("ESC key - queueing stop button event") self.enqueue_button_press_release(self.button_list['stop']) self.tool_descript_entry.shutdown_view() tooltipmgr.TTMgr().on_esc_key() return True ### Insert code after this section # F5 key for Main page if kv == gtk.keysyms.F5: self.error_handler.log("F5 key-Goto Main page") ui_misc.set_current_notebook_page_by_id(UI.notebook, 'notebook_main_fixed') self.window.show() return True # F6 key for work Probe page if kv == gtk.keysyms.F6: self.error_handler.log("F6 key-Goto File page") ui_misc.set_current_notebook_page_by_id(UI.notebook, 'notebook_file_util_wrapping_eventbox') self.window.show() return True # F7 key for Alarm Status page if kv == gtk.keysyms.F7: self.error_handler.log("F7 key-Goto Tool Offsets Page") self.window.show() return True # F8 key for tool offsets page if kv == gtk.keysyms.F8: self.error_handler.log("F8 key-Goto Probe page") ui_misc.set_current_notebook_page_by_id(UI.notebook,"probe_fixed") self.window.show() return True # F9 key for Main page if kv == gtk.keysyms.F9: self.error_handler.log("F9 key-Goto Status page") ui_misc.set_current_notebook_page_by_id(UI.notebook, 'alarms_fixed') self.window.show() return True # F10 key for work offsets page if kv == gtk.keysyms.F10: self.error_handler.log("F10 key-Goto Work Offsets page") ui_misc.set_current_notebook_page_by_id(self.notebook, 'notebook_offsets_fixed') ui_misc.set_current_notebook_page_by_id(self.offsets_notebook, 'work_offsets_fixed') self.window.show() return True # F11 key for Alarm Status page if kv == gtk.keysyms.F11: self.error_handler.log("F11 key-Goto Tool Offsets Page") ui_misc.set_current_notebook_page_by_id(self.notebook, 'notebook_offsets_fixed') ui_misc.set_current_notebook_page_by_id(self.offsets_notebook, 'tool_offsets_fixed') self.window.show() return True