Poking around in the latest PathPilot, it seems we actually have an import that does not get blown away during an upgrade.
The module "ui_hooks" in the gcode/python directory gets imported by the tormach_mill_ui.py module.

Some optional functions get called in that module, if they exist:
ui_hooks() -- takes the command, error_handler, version_list, and digital_output_offset parameters, and should return an object with callback methods.
stop_button(), reset_button(), estop_event() -- called when those buttons are pushed in the UI, if they exist on the ui_hooks object returned above.

Any single pendant manufacturer may be able to do everything they need with this one hook!
However, multiple hooks will clash -- there can be only one.

Still, this is major improvement!

Similar Threads: