Commit 2a18b298 authored by Christian Metzen's avatar Christian Metzen

add possibility to choose bgcolor for whole main screen in config file

parent 6a630098
...@@ -62,12 +62,13 @@ class PronterWindow(wx.Frame,pronsole.pronsole): ...@@ -62,12 +62,13 @@ class PronterWindow(wx.Frame,pronsole.pronsole):
self.settings.preview_grid_step1 = 10. self.settings.preview_grid_step1 = 10.
self.settings.preview_grid_step2 = 50. self.settings.preview_grid_step2 = 50.
self.settings.preview_extrusion_width = 0.5 self.settings.preview_extrusion_width = 0.5
self.settings.bgcolor = "#FFFFFF"
self.filename=filename self.filename=filename
os.putenv("UBUNTU_MENUPROXY","0") os.putenv("UBUNTU_MENUPROXY","0")
wx.Frame.__init__(self,None,title=_("Printer Interface"),size=size); wx.Frame.__init__(self,None,title=_("Printer Interface"),size=size);
self.SetIcon(wx.Icon("P-face.ico",wx.BITMAP_TYPE_ICO)) self.SetIcon(wx.Icon("P-face.ico",wx.BITMAP_TYPE_ICO))
self.panel=wx.Panel(self,-1,size=size) self.panel=wx.Panel(self,-1,size=size)
self.panel.SetBackgroundColour("white")
self.statuscheck=False self.statuscheck=False
self.tempreport="" self.tempreport=""
self.monitor=0 self.monitor=0
...@@ -85,6 +86,7 @@ class PronterWindow(wx.Frame,pronsole.pronsole): ...@@ -85,6 +86,7 @@ class PronterWindow(wx.Frame,pronsole.pronsole):
self.custombuttons=[] self.custombuttons=[]
self.btndict={} self.btndict={}
self.parse_cmdline(sys.argv[1:]) self.parse_cmdline(sys.argv[1:])
self.panel.SetBackgroundColour(self.settings.bgcolor)
customdict={} customdict={}
try: try:
execfile("custombtn.txt",customdict) execfile("custombtn.txt",customdict)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment