Add a set_mdi_mode pin to match the existing set_manual_mode pin in axis. This is *not* my orginal work. It was taken from the following forum posting:
http://www.linuxcnc.org/linuxcnc/index.php/forum/21-axis/24219 I'm merely submitting the patch so it, hopefully, gets included in 2.6 --- src/emc/usr_intf/axis/scripts/axis.py | 7 +++++++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --git a/src/emc/usr_intf/axis/scripts/axis.py b/src/emc/usr_intf/axis/scripts/axis.py index 1385f17..8403c28 100755 --- a/src/emc/usr_intf/axis/scripts/axis.py +++ b/src/emc/usr_intf/axis/scripts/axis.py @@ -649,6 +649,7 @@ class LivePlotter: self.last_motion_mode = None self.last_joint_position = None self.set_manual_mode = False + self.set_mdi_mode = False self.notifications_clear = False self.notifications_clear_info = False self.notifications_clear_error = False @@ -761,6 +762,11 @@ class LivePlotter: self.set_manual_mode = set_manual_mode if self.set_manual_mode: root_window.tk.eval(pane_top + ".tabs raise manual") + set_mdi_mode = comp["set-mdi-mode"] + if self.set_mdi_mode != set_mdi_mode: + self.set_mdi_mode = set_mdi_mode + if self.set_mdi_mode: + root_window.tk.eval(pane_top + ".tabs raise mdi") notifications_clear = comp["notifications-clear"] if self.notifications_clear != notifications_clear: self.notifications_clear = notifications_clear @@ -3094,6 +3100,7 @@ if hal_present == 1 : comp.newpin("jog.w", hal.HAL_BIT, hal.HAL_OUT) comp.newpin("jog.increment", hal.HAL_FLOAT, hal.HAL_OUT) comp.newpin("set-manual-mode",hal.HAL_BIT,hal.HAL_IN) + comp.newpin("set-mdi-mode",hal.HAL_BIT,hal.HAL_IN) comp.newpin("notifications-clear",hal.HAL_BIT,hal.HAL_IN) comp.newpin("notifications-clear-info",hal.HAL_BIT,hal.HAL_IN) comp.newpin("notifications-clear-error",hal.HAL_BIT,hal.HAL_IN) -- 1.7.0.4 -- Regards, Russell -------------------------------------------------------------------- | Russell Brown | MAIL: [email protected] PHONE: 01780 471800 | | Lady Lodge Systems | WWW Work: http://www.lls.com | | Peterborough, England | WWW Play: http://www.ruffle.me.uk | -------------------------------------------------------------------- ------------------------------------------------------------------------------ Shape the Mobile Experience: Free Subscription Software experts and developers: Be at the forefront of tech innovation. Intel(R) Software Adrenaline delivers strategic insight and game-changing conversations that shape the rapidly evolving mobile landscape. Sign up now. http://pubads.g.doubleclick.net/gampad/clk?id=63431311&iu=/4140/ostg.clktrk _______________________________________________ Emc-developers mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/emc-developers
