# Many configuration changes can be put in your ~/.axisrc file
# and do not require modifying (nor maintaining) axis.tcl. Reading
# the axis.tcl and axis.py files is useful in determining widget names
# and options. The Tk man pages for widgets will show all options
# available for a given widget (button, scrollbar, text, etc).
# For example: $ cat ~/.axisrc
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.machine_estop","configure"
,"-image",""
,"-text","ESTOP"
,"-activebackground","red"
,"-background","red"
,"-helptext","Toggle Emergency Stop [F1]"
,"-borderwidth","5"
,"-font","Helvetica 12"
,"-height","2"
,"-width","6"
,"-highlightthickness", 1
,"-highlightcolor","black"
,"-highlightbackground","black"
,"-takefocus",0
,"-padx",5
,"-pady",5
);
# In this example, the colors of the gcode text pane are modified
# per an earlier suggestion.
# ( Using named colors may be simpler than hex codes like #ff0000.)
# (Use the xcolors utility to show standard X color names.)
# Then, the estop button is modified by removing the
# image, adding text, and setting other configuration options
# as outlined in earlier posts.
# The .axisrc commands must have no errors and some
# escape sequences may be required, e.g., for quotes
# embedded in quotes
# Beware that future releases may change the names of widgets
# or have other side effects.