Skip to content

Commit

Permalink
Merge 'origin/dgarr/285,361'
Browse files Browse the repository at this point in the history
  • Loading branch information
dngarrett committed Dec 11, 2017
2 parents bf2db97 + 3de8778 commit b7a13a8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
5 changes: 3 additions & 2 deletions share/axis/tcl/axis.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -816,7 +816,7 @@ set _tabs_mdi [${pane_top}.tabs insert end mdi -text [_ "MDI \[F5\]"]]
$_tabs_manual configure -borderwidth 2
$_tabs_mdi configure -borderwidth 2

${pane_top}.tabs itemconfigure mdi -raisecmd "[list focus ${_tabs_mdi}.command]; ensure_mdi"
${pane_top}.tabs itemconfigure mdi -raisecmd "[list focus ${_tabs_mdi}.command];"
#${pane_top}.tabs raise manual
after idle {
${pane_top}.tabs raise manual
Expand Down Expand Up @@ -1850,7 +1850,8 @@ proc update_state {args} {
}

if {$::task_state == $::STATE_ON && $::interp_state == $::INTERP_IDLE} {
if {$::last_interp_state != $::INTERP_IDLE || $::last_task_state != $::task_state} {
if { ($::last_interp_state != $::INTERP_IDLE || $::last_task_state != $::task_state) \
&& $::task_mode == $::TASK_MODE_AUTO} {
set_mode_from_tab
}
enable_group $::manualgroup
Expand Down
3 changes: 3 additions & 0 deletions src/emc/usr_intf/axis/scripts/axis.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,9 @@ def putpref(self, option, value, type=bool):
root_window.tk.call("set","::STATE_ESTOP_RESET" ,linuxcnc.STATE_ESTOP_RESET)
root_window.tk.call("set","::STATE_OFF" ,linuxcnc.STATE_OFF)
root_window.tk.call("set","::STATE_ON" ,linuxcnc.STATE_ON)
root_window.tk.call("set","::TASK_MODE_MANUAL" ,linuxcnc.MODE_MANUAL)
root_window.tk.call("set","::TASK_MODE_MDI" ,linuxcnc.MODE_MDI)
root_window.tk.call("set","::TASK_MODE_AUTO" ,linuxcnc.MODE_AUTO)
root_window.tk.call("set","::INTERP_IDLE" ,linuxcnc.INTERP_IDLE)
root_window.tk.call("set","::INTERP_READING" ,linuxcnc.INTERP_READING)
root_window.tk.call("set","::INTERP_PAUSED" ,linuxcnc.INTERP_PAUSED)
Expand Down

0 comments on commit b7a13a8

Please sign in to comment.