⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 axis.tcl

📁 CNC 的开放码,EMC2 V2.2.8版
💻 TCL
📖 第 1 页 / 共 4 页
字号:
setup_widget_accel .toolbar.view_z2 {}Button .toolbar.view_x \	-command set_view_x \	-helptext [_ "Side view"] \	-image [load_image tool_axis_x] \	-relief link \	-takefocus 0setup_widget_accel .toolbar.view_x {}Button .toolbar.view_y \	-command set_view_y \	-helptext [_ "Front view"] \	-image [load_image tool_axis_y] \	-relief link \	-takefocus 0setup_widget_accel .toolbar.view_y {}Button .toolbar.view_p \	-command set_view_p \	-helptext [_ "Perspective view"] \	-image [load_image tool_axis_p] \	-relief link \	-takefocus 0setup_widget_accel .toolbar.view_p {}Button .toolbar.rotate \        -image [load_image tool_rotate] \	-helptext [_ "Toggle between Drag and Rotate Mode \[D\]"] \        -relief link \        -command {            set rotate_mode [expr {!$rotate_mode}]            if {$rotate_mode} {                .toolbar.rotate configure -relief sunken            } else {                .toolbar.rotate configure -relief link            }        }vrule .toolbar.rule12Button .toolbar.clear_plot \	-command clear_live_plot \	-helptext [_ "Clear live plot \[Ctrl-K\]"] \	-image [load_image tool_clear] \	-relief link \	-takefocus 0setup_widget_accel .toolbar.clear_plot {}# Pack widget .toolbar.machine_estoppack .toolbar.machine_estop \	-side left# Pack widget .toolbar.machine_powerpack .toolbar.machine_power \	-side left# Pack widget .toolbar.rule0pack .toolbar.rule0 \	-fill y \	-padx 4 \	-pady 4 \	-side left# Pack widget .toolbar.file_openpack .toolbar.file_open \	-side left# Pack widget .toolbar.reloadpack .toolbar.reload \	-side left# Pack widget .toolbar.rule4pack .toolbar.rule4 \	-fill y \	-padx 4 \	-pady 4 \	-side left# Pack widget .toolbar.program_runpack .toolbar.program_run \	-side left# Pack widget .toolbar.program_steppack .toolbar.program_step \	-side left# Pack widget .toolbar.program_pausepack .toolbar.program_pause \	-side left# Pack widget .toolbar.program_stoppack .toolbar.program_stop \	-side left# Pack widget .toolbar.rule8pack .toolbar.rule8 \	-fill y \	-padx 4 \	-pady 4 \	-side left# Pack widget .toolbar.view_zoominpack .toolbar.view_zoomin \	-side left# Pack widget .toolbar.view_zoomoutpack .toolbar.view_zoomout \	-side left# Pack widget .toolbar.view_zpack .toolbar.view_z \	-side left# Pack widget .toolbar.view_z2pack .toolbar.view_z2 \	-side left# Pack widget .toolbar.view_xpack .toolbar.view_x \	-side left# Pack widget .toolbar.view_ypack .toolbar.view_y \	-side left# Pack widget .toolbar.view_ppack .toolbar.view_p \	-side left# Pack widget .toolbar.rotatepack .toolbar.rotate \	-side left# Pack widget .toolbar.rule12pack .toolbar.rule12 \	-fill y \	-padx 4 \	-pady 4 \	-side left# Pack widget .toolbar.clear_plotpack .toolbar.clear_plot \	-side leftset pane_top [frame .top]set pane_bottom [frame .bottom]NoteBook ${pane_top}.tabs \	-borderwidth 2 \	-arcradius 3proc show_all_tabs w {    upvar 0 NoteBook::$w data    set a [winfo reqwidth $w]    set b [expr $data(wpage) + 3]    if {$a < $b} { $w configure -width $b }}after 1 after idle show_all_tabs ${pane_top}.tabsset _tabs_manual [${pane_top}.tabs insert end manual -text [_ "Manual Control \[F3\]"] -raisecmd {focus .; ensure_manual}]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 raise manualafter idle {    ${pane_top}.tabs raise manual    after idle ${pane_top}.tabs compute_size}label $_tabs_manual.axissetup_widget_accel $_tabs_manual.axis [_ Axis:]frame $_tabs_manual.axesradiobutton $_tabs_manual.axes.axisx \	-anchor w \	-padx 0 \	-selectcolor #4864ab \	-value x \	-variable current_axis \	-width 2 \        -text X \        -command axis_activatedradiobutton $_tabs_manual.axes.axisy \	-anchor w \	-padx 0 \	-selectcolor #4864ab \	-value y \	-variable current_axis \	-width 2 \        -text Y \        -command axis_activatedradiobutton $_tabs_manual.axes.axisz \	-anchor w \	-padx 0 \	-selectcolor #4864ab \	-value z \	-variable current_axis \	-width 2 \        -text Z \        -command axis_activatedradiobutton $_tabs_manual.axes.axisa \	-anchor w \	-padx 0 \	-selectcolor #4864ab \	-value a \	-variable current_axis \	-width 2 \        -text A \        -command axis_activatedradiobutton $_tabs_manual.axes.axisb \	-anchor w \	-padx 0 \	-selectcolor #4864ab \	-value b \	-variable current_axis \	-width 2 \        -text B \        -command axis_activatedradiobutton $_tabs_manual.axes.axisc \	-anchor w \	-padx 0 \	-selectcolor #4864ab \	-value c \	-variable current_axis \	-width 2 \        -text C \        -command axis_activatedradiobutton $_tabs_manual.axes.axisu \	-anchor w \	-padx 0 \	-selectcolor #4864ab \	-value u \	-variable current_axis \	-width 2 \        -text U \        -command axis_activatedradiobutton $_tabs_manual.axes.axisv \	-anchor w \	-padx 0 \	-selectcolor #4864ab \	-value v \	-variable current_axis \	-width 2 \        -text V \        -command axis_activatedradiobutton $_tabs_manual.axes.axisw \	-anchor w \	-padx 0 \	-selectcolor #4864ab \	-value w \	-variable current_axis \	-width 2 \        -text W \        -command axis_activated# Grid widget $_tabs_manual.axes.axisagrid $_tabs_manual.axes.axisu \	-column 0 \	-row 2 \	-padx 4# Grid widget $_tabs_manual.axes.axisbgrid $_tabs_manual.axes.axisv \	-column 1 \	-row 2 \	-padx 4# Grid widget $_tabs_manual.axes.axiscgrid $_tabs_manual.axes.axisw \	-column 2 \	-row 2 \	-padx 4# Grid widget $_tabs_manual.axes.axisagrid $_tabs_manual.axes.axisa \	-column 0 \	-row 1 \	-padx 4# Grid widget $_tabs_manual.axes.axisbgrid $_tabs_manual.axes.axisb \	-column 1 \	-row 1 \	-padx 4# Grid widget $_tabs_manual.axes.axiscgrid $_tabs_manual.axes.axisc \	-column 2 \	-row 1 \	-padx 4# Grid widget $_tabs_manual.axes.axisxgrid $_tabs_manual.axes.axisx \	-column 0 \	-row 0 \	-padx 4# Grid widget $_tabs_manual.axes.axisygrid $_tabs_manual.axes.axisy \	-column 1 \	-row 0 \	-padx 4# Grid widget $_tabs_manual.axes.axiszgrid $_tabs_manual.axes.axisz \	-column 2 \	-row 0 \	-padx 4frame $_tabs_manual.jogfframe $_tabs_manual.jogf.jogbutton $_tabs_manual.jogf.jog.jogminus \	-command {if {![is_continuous]} {jog_minus 1}} \	-padx 0 \	-pady 0 \	-width 2 \        -text -bind $_tabs_manual.jogf.jog.jogminus <Button-1> {    if {[is_continuous]} { jog_minus }}bind $_tabs_manual.jogf.jog.jogminus <ButtonRelease-1> {    if {[is_continuous]} { jog_stop }}button $_tabs_manual.jogf.jog.jogplus \	-command {if {![is_continuous]} {jog_plus 1}} \	-padx 0 \	-pady 0 \	-width 2 \        -text +bind $_tabs_manual.jogf.jog.jogplus <Button-1> {    if {[is_continuous]} { jog_plus }}bind $_tabs_manual.jogf.jog.jogplus <ButtonRelease-1> {    if {[is_continuous]} { jog_stop }}combobox $_tabs_manual.jogf.jog.jogincr \	-editable 0 \	-textvariable jogincrement \	-value [_ Continuous] \	-width 10$_tabs_manual.jogf.jog.jogincr list insert end [_ Continuous] 0.1000 0.0100 0.0010 0.0001frame $_tabs_manual.jogf.zerohomebutton $_tabs_manual.jogf.zerohome.home \	-command home_axis \	-padx 2m \	-pady 0setup_widget_accel $_tabs_manual.jogf.zerohome.home [_ "Home Axis"]button $_tabs_manual.jogf.zerohome.zero \	-command touch_off \	-padx 2m \	-pady 0setup_widget_accel $_tabs_manual.jogf.zerohome.zero [_ "Touch Off"]checkbutton $_tabs_manual.jogf.override \	-command toggle_override_limits \	-variable override_limitssetup_widget_accel $_tabs_manual.jogf.override [_ "Override Limits"]grid $_tabs_manual.jogf.zerohome \	-column 0 \	-row 1 \	-columnspan 3 \	-sticky wgrid $_tabs_manual.jogf.jog \	-column 0 \	-row 0 \	-columnspan 3 \	-sticky w# Grid widget $_tabs_manual.jogf.zerohome.homegrid $_tabs_manual.jogf.zerohome.home \	-column 0 \	-row 0 \	-ipadx 2 \	-pady 2 \	-sticky w# Grid widget $_tabs_manual.jogf.zerohome.zerogrid $_tabs_manual.jogf.zerohome.zero \	-column 1 \	-row 0 \	-ipadx 2 \	-pady 2 \	-sticky w# Grid widget $_tabs_manual.jogf.overridegrid $_tabs_manual.jogf.override \	-column 0 \	-row 3 \	-columnspan 3 \	-pady 2 \	-sticky w# Grid widget $_tabs_manual.jogf.jog.jogminusgrid $_tabs_manual.jogf.jog.jogminus \	-column 0 \	-row 0 \	-pady 2 \	-sticky nsw# Grid widget $_tabs_manual.jogf.jog.jogplusgrid $_tabs_manual.jogf.jog.jogplus \	-column 1 \	-row 0 \	-pady 2 \	-sticky nsw# Grid widget $_tabs_manual.jogf.jog.jogincrgrid $_tabs_manual.jogf.jog.jogincr \	-column 2 \	-row 0 \	-pady 2 \        -sticky nswvspace $_tabs_manual.space1 \	-height 12label $_tabs_manual.spindlelsetup_widget_accel $_tabs_manual.spindlel [_ Spindle:]frame $_tabs_manual.spindlefframe $_tabs_manual.spindlef.row1frame $_tabs_manual.spindlef.row2radiobutton $_tabs_manual.spindlef.ccw \	-borderwidth 2 \	-command spindle \	-image [load_image spindle_ccw] \	-indicatoron 0 \	-selectcolor [systembuttonface] \	-value -1 \	-variable spindledirsetup_widget_accel $_tabs_manual.spindlef.ccw {}radiobutton $_tabs_manual.spindlef.stop \	-borderwidth 2 \	-command spindle \	-indicatoron 0 \	-selectcolor [systembuttonface] \	-value 0 \	-variable spindledirsetup_widget_accel $_tabs_manual.spindlef.stop [_ Stop]radiobutton $_tabs_manual.spindlef.cw \	-borderwidth 2 \	-command spindle \	-image [load_image spindle_cw] \	-indicatoron 0 \	-selectcolor [systembuttonface] \	-value 1 \	-variable spindledirsetup_widget_accel $_tabs_manual.spindlef.cw {}button $_tabs_manual.spindlef.spindleminus \	-padx 0 \	-pady 0 \	-width 2bind $_tabs_manual.spindlef.spindleminus <Button-1> {	if {[%W cget -state] == "disabled"} { continue }	spindle_decrease}bind $_tabs_manual.spindlef.spindleminus <ButtonRelease-1> {	if {[%W cget -state] == "disabled"} { continue }	spindle_constant}setup_widget_accel $_tabs_manual.spindlef.spindleminus [_ -]button $_tabs_manual.spindlef.spindleplus \	-padx 0 \	-pady 0 \	-width 2bind $_tabs_manual.spindlef.spindleplus <Button-1> {	if {[%W cget -state] == "disabled"} { continue }	spindle_increase}bind $_tabs_manual.spindlef.spindleplus <ButtonRelease-1> {	if {[%W cget -state] == "disabled"} { continue }	spindle_constant}setup_widget_accel $_tabs_manual.spindlef.spindleplus [_ +]checkbutton $_tabs_manual.spindlef.brake \

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -