<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;"># Custom setup for LinuCNC		12/02/2016
# Deafult to perspective view 	------------------------------------------------

commands.set_view_p()

# Remove view angles 			------------------------------------------------

def laser_hide(widget):
    widget.winfo_manager()
    widget.tk.call(widget.winfo_manager(), "forget", widget)

laser_hide(widgets.view_z)
laser_hide(widgets.view_z2)
laser_hide(widgets.view_x)
laser_hide(widgets.view_y)
laser_hide(widgets.view_p)
laser_hide(widgets.rotate)

# Open Axis full screen			------------------------------------------------

maxgeo=root_window.tk.call("wm","maxsize",".")
#fullsize=maxgeo.split(' ')[0] + 'x' + maxgeo.split(' ')[1]
root_window.tk.call("wm","geometry",".","1910x1135")

# Enable Ctrl-Q Quit	 		------------------------------------------------

root_window.bind("&lt;Control-q&gt;", "destroy .")
help2.append(("Control-Q", "Quit"))

# Change BG color G-code window	------------------------------------------------

#root_window.tk.call(pane_top+".tabs","configure","-background","gray30")
#root_window.tk.call(pane_top+".jogspeed.s","configure","-background","gray30")
#root_window.tk.call(pane_top+".right","configure","-background","gray30")


root_window.tk.call(pane_bottom+".t.text","configure","-background","black")

root_window.tk.call(pane_bottom+".t.text","configure","-foreground","steelblue1")

#root_window.tk.call(".toolbar","configure","-background","gray30")
#root_window.tk.call(".menu","configure","-background","gray30")
#root_window.tk.call(pane_top+".jogspeed","configure","-background","gray30")
#root_window.tk.call(pane_top+".jogspeed.s","configure","-background","gray30")
#root_window.tk.call(pane_top+".jogspeed.l0","configure","-background","gray30")
#root_window.tk.call(pane_top+".jogspeed.l0","configure","-foreground","white")
#root_window.tk.call(pane_top+".jogspeed.l1","configure","-background","gray30")
#root_window.tk.call(pane_top+".jogspeed.l1","configure","-foreground","white")
#root_window.tk.call(pane_top+".jogspeed.l","configure","-background","gray30")
#root_window.tk.call(pane_top+".jogspeed.l","configure","-foreground","white")



# Change buttons				------------------------------------------------

root_window.tk.call(".toolbar.machine_estop","configure"
,"-image",""
,"-text","ESTOP"
,"-activebackground","red"
,"-background","red"
,"-helptext","Toggle Emergency Stop [F1]"
,"-borderwidth","5"
,"-font","Helvetica 12"
,"-height","1"
,"-width","12"
,"-highlightthickness", 1
,"-highlightcolor","black"
,"-highlightbackground","black"
,"-takefocus",0
,"-padx",5
,"-pady",5
);

root_window.tk.call(".toolbar.machine_power","configure"
,"-image",""
,"-text","POWER"
,"-activebackground","darkorange"
,"-background","orange"
,"-helptext","Toggle Machine Power [F2]"
,"-borderwidth","5"
,"-font","Helvetica 12"
,"-height","1"
,"-width","12"
,"-highlightthickness", 1
,"-highlightcolor","black"
,"-highlightbackground","black"
,"-takefocus",0
,"-padx",5
,"-pady",5
);

root_window.tk.call(".toolbar.program_run","configure"
,"-image",""
,"-text","RUN"
,"-activebackground","green"
,"-background","green1"
,"-helptext","Begin Executing Current File [R]"
,"-borderwidth","5"
,"-font","Helvetica 12"
,"-height","1"
,"-width","12"
,"-highlightthickness", 1
,"-highlightcolor","black"
,"-highlightbackground","black"
,"-takefocus",0
,"-padx",5
,"-pady",2
);

root_window.tk.call(".toolbar.program_step","configure"
,"-image",""
,"-text","STEP"
,"-activebackground","gold"
,"-background","gold"
,"-helptext","Execute next line [T]"
,"-borderwidth","5"
,"-font","Helvetica 12"
,"-height","1"
,"-width","12"
,"-highlightthickness", 1
,"-highlightcolor","black"
,"-highlightbackground","black"
,"-takefocus",0
,"-padx",5
,"-pady",2
);

root_window.tk.call(".toolbar.program_pause","configure"
,"-image",""
,"-text","PAUSE"
,"-activebackground","darkorange"
,"-background","darkorange"
,"-helptext","Pause  [P ]  / resume execution [S] "
,"-borderwidth","5"
,"-font","Helvetica 12"
,"-height","1"
,"-width","12"
,"-highlightthickness", 1
,"-highlightcolor","black"
,"-highlightbackground","black"
,"-takefocus",0
,"-padx",5
,"-pady",2
);

root_window.tk.call(".toolbar.program_stop","configure"
,"-image",""
,"-text","STOP"
,"-activebackground","red"
,"-background","red"
,"-helptext","Stop program execution [ESC]"
,"-borderwidth","5"
,"-font","Helvetica 12"
,"-height","1"
,"-width","12"
,"-highlightthickness", 1
,"-highlightcolor","black"
,"-highlightbackground","black"
,"-takefocus",0
,"-padx",5
,"-pady",2
);</pre></body></html>