#linuxcnc-devel | Logs for 2016-10-14

[02:49:57] -linuxcnc-github:#linuxcnc-devel- [13linuxcnc] 15trasz commented on issue #174: Thanks; I hope I'll be able to do some more porting work in a few weeks. 02https://github.com/LinuxCNC/linuxcnc/pull/174#issuecomment-253727762
[11:33:13] -linuxcnc-github:#linuxcnc-devel- [13linuxcnc] 15tseufl closed pull request #172: Update 9_axis.glade, update axis.tcl (06master...06master) 02https://github.com/LinuxCNC/linuxcnc/pull/172
[16:13:34] <mozmck> Has anyone done a lighter color scheme for gremlin? What all is involved in changing the colors?
[16:14:57] <jepler> you get to wallow in gtk theme support
[16:15:21] <jepler> er gremlin you said
[16:16:03] <jepler> I read touchy
[16:17:03] <mozmck> Yeah, I think colors in gremlin are not part of the theme?
[16:17:50] <mozmck> I've done a bit of gtk theme stuff already. Simply trying to find what to change is rather difficult - a lot of trial and error.
[16:18:36] <jepler> class GlCanonDraw:
[16:18:36] <jepler> colors = {
[16:18:37] <jepler> 'traverse': (0.30, 0.50, 0.50),
[16:18:51] <jepler> the default colors are specified here
[16:19:22] <jepler> right now there's no systematic way for Gremlin to modify or override them
[16:20:12] <mozmck> So I have to change the source, or is there a way to change that in code after creating the gremlin object?
[16:20:19] <jepler> in its __init__ before the construction of 'self.logger' you could do that based on information from the inifile object e.g.
[16:20:41] <jepler> you are looking at editing gremlin.py in the source tree, to make it configurable
[16:21:14] <jepler> first you'd initialize this specific Gremlin's colors with a "shallow copy" of the default colors: self.colors = dict(rs274.canon.GlCanonDraw)
[16:21:27] <jepler> then you'd implement whatever system you want to look up alternate colors from the inifile
[16:22:37] <jepler> .. for instance you could just loop over each item in self.colors.keys(), look up if it's specified in some section of the inifile, and if so replace the value with a new value
[16:23:45] <jepler> errr
[16:23:46] <mozmck> So that would have to be done before construction of self.logger?
[16:23:52] <jepler> errrrr self.colors = dict(rs274.canon.GlCanonDraw.colors)
[16:26:15] <mozmck> Hmm, I'll have to study on that some. My python is not great yet.
[17:20:47] <kirk_wallace> mozmck, just in case it might be handy, I made some Gremlin notes quite a while a go here: http://wiki.linuxcnc.org/cgi-bin/wiki.pl?Gremlin From there, I can see a color being set with "glColor3f(1.0,0.0,0.0)" where a it is (Red,Green,Blue) and the values are from 0.0 to 1.0. I seem to recall there should be a collection of color variables at the beginning of a file some where.
[17:22:08] <mozmck> Thanks for that kirk, I'll look at it.
[22:07:47] -linuxcnc-github:#linuxcnc-devel- [13linuxcnc] 15jepler commented on issue #172: Feel free to open additional pull requests at any time. Thank you for working to improve linuxcnc. 02https://github.com/LinuxCNC/linuxcnc/pull/172#issuecomment-253957758