From 2a18b298f007a86d4db7d3b361127447480ae927 Mon Sep 17 00:00:00 2001 From: Christian Metzen Date: Sat, 7 Jan 2012 08:33:34 +0100 Subject: [PATCH] add possibility to choose bgcolor for whole main screen in config file --- pronterface.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pronterface.py b/pronterface.py index 5309530..b73e230 100755 --- a/pronterface.py +++ b/pronterface.py @@ -62,12 +62,13 @@ class PronterWindow(wx.Frame,pronsole.pronsole): self.settings.preview_grid_step1 = 10. self.settings.preview_grid_step2 = 50. self.settings.preview_extrusion_width = 0.5 + self.settings.bgcolor = "#FFFFFF" self.filename=filename os.putenv("UBUNTU_MENUPROXY","0") wx.Frame.__init__(self,None,title=_("Printer Interface"),size=size); self.SetIcon(wx.Icon("P-face.ico",wx.BITMAP_TYPE_ICO)) self.panel=wx.Panel(self,-1,size=size) - self.panel.SetBackgroundColour("white") + self.statuscheck=False self.tempreport="" self.monitor=0 @@ -85,6 +86,7 @@ class PronterWindow(wx.Frame,pronsole.pronsole): self.custombuttons=[] self.btndict={} self.parse_cmdline(sys.argv[1:]) + self.panel.SetBackgroundColour(self.settings.bgcolor) customdict={} try: execfile("custombtn.txt",customdict)