\r
configBase.TitleRow(left, 'Colours')\r
c = configBase.SettingRow(left, 'Model colour', 'model_colour', wx.Colour(0,0,0), '', type = 'preference')\r
+ for i in xrange(1, self.oldExtruderAmount):\r
+ c = configBase.SettingRow(left, 'Model colour (%d)' % (i+1), 'model_colour%d' % (i+1), wx.Colour(0,0,0), '', type = 'preference')\r
\r
configBase.TitleRow(right, 'Filament settings')\r
c = configBase.SettingRow(right, 'Filament density (kg/m3)', 'filament_density', '1300', 'Weight of the filament per m3. Around 1300 for PLA. And around 1040 for ABS. This value is used to estimate the weight if the filament used for the print.', type = 'preference')\r
self.gcodeDisplayListMade = None\r
self.gcodeDisplayListCount = 0\r
self.objColor = [[1.0, 0.8, 0.6, 1.0], [0.2, 1.0, 0.1, 1.0], [1.0, 0.2, 0.1, 1.0], [0.1, 0.2, 1.0, 1.0]]\r
- self.objColor[0] = profile.getPreferenceColour('model_colour')\r
\r
def updateProfileToControls(self):\r
self.objColor[0] = profile.getPreferenceColour('model_colour')\r
+ self.objColor[1] = profile.getPreferenceColour('model_colour2')\r
+ self.objColor[2] = profile.getPreferenceColour('model_colour3')\r
+ self.objColor[3] = profile.getPreferenceColour('model_colour3')\r
\r
def OnMouseMotion(self,e):\r
if e.Dragging() and e.LeftIsDown():\r
'extruder_head_size_height': '80.0',\r
\r
'model_colour': '#FFCC99',\r
+ 'model_colour2': '#33FF1A',\r
+ 'model_colour3': '#FF331A',\r
+ 'model_colour4': '#1A33FF',\r
}\r
\r
#########################################################\r