Changing the openGL colors in the Axis GUI

More
14 years 6 months ago - 14 years 6 months ago #19224 by loboy
JR,

So I think to change the original gcode background you have to go to around line 1517 and add background color attributes to the first element, and a foreground color attribute to the second element:
Code:
frame ${pane_bottom}.t -borderwidth 2 -relief sunken -highlightthickness 1 -background "#000000" text ${pane_bottom}.t.text -foreground "#ffffff" -borderwidth 0 -exportselection 0 -height 9 -highlightthickness 0 -relief flat -takefocus 0 -yscrollcommand [list ${pane_bottom}.t.sb set] ${pane_bottom}.t.text insert end {}

Remember the backslashes...
Last edit: 14 years 6 months ago by loboy.
The following user(s) said Thank You: Hearty

Please Log in or Create an account to join the conversation.

More
14 years 6 months ago #19226 by JR1050
Thank you!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! If you are ever in FL.look me up,cold ones and BBQ on me!!

Please Log in or Create an account to join the conversation.

More
14 years 6 months ago - 14 years 6 months ago #19232 by dgarrett
# 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.
Last edit: 14 years 6 months ago by dgarrett. Reason: backslash escapes not handled properly on display
The following user(s) said Thank You: Hearty

Please Log in or Create an account to join the conversation.

More
10 years 5 months ago #74574 by probotix
Do you care to share your code for this?

Please Log in or Create an account to join the conversation.

More
10 years 5 months ago #74765 by loboy
Hi Probotix,

I made extensive changes to Axis and LinuxCNC, and I think LinuxCNC has moved on to a new version of Ubuntu. I am still on the previous legacy version of Ubuntu, I forget the version number, but I just know the long term support has ended on my version.

As far as sharing the code goes, I think I would have to make a full on distribution, with which I am not that familiar. My modifications were pretty much kept to Axis, but Axis uses other parts of certain python modules and tcltk parts which I did modify. I kept some notes but I am unclear as to how this would affect other front end parts of LinuxCNC. The changes were mostly cosmetic and had to do with the rendering of the GUI, but I just don't know. In addition, I ripped out a lot of code others might find useful, like the tab system, and I never tested Axis in its lathe mode, using kinematics, or with more than 4 rotational axises (axii?).

Otherwise, I have been using this front end now for about four years and I haven't run into any problems on my machine. Funny thing is, I use a Probotix motor controller on my machine as well as their stepper motors. Are you affiliated with Probotix at all?

Let me know what you think, and if I can help in any other way.

Please Log in or Create an account to join the conversation.

More
10 years 5 months ago #74771 by probotix
Yes,, as a matter of fact I am the owner of probotix. I too have been working on the Axis interface on an older version (2.5). I dont have any need for merging in with the current code base necessarily, but if I did, I would make it Axis2 or something, as I want a very simplified interface without the use of coordinate systems or offsets or any of the other power user features that tend to confuse the average guy who just makes little plaques that say "I love you, honey."

Please Log in or Create an account to join the conversation.

Time to create page: 0.075 seconds
Powered by Kunena Forum