From b6ab044cd67a0e13091f28028201a3b09c748ca6 Mon Sep 17 00:00:00 2001 From: Cas Cremers Date: Mon, 9 Apr 2012 21:14:41 +0200 Subject: [PATCH] BUGFIX: 'Default' color not known to newer wxPython versions. The statement was redundant anyway. --- gui/Gui/Attackwindow.py | 14 -------------- gui/Gui/Scytherthread.py | 2 +- 2 files changed, 1 insertion(+), 15 deletions(-) diff --git a/gui/Gui/Attackwindow.py b/gui/Gui/Attackwindow.py index 6a5f053..23f9f42 100644 --- a/gui/Gui/Attackwindow.py +++ b/gui/Gui/Attackwindow.py @@ -52,14 +52,6 @@ class AttackDisplay(wx.ScrolledWindow): wx.ScrolledWindow.__init__(self,parent,id=-1) - # [CC][X] The below statement might be iffy on older versions. - # (Python 2.3? What settings?) - # Cf. bug report Vimal Subra - try: - self.SetBackgroundColour(wx.Colour(255,255,255)) - except: - pass - self.Bind(wx.EVT_SIZE, self.OnSize) self.Image = wx.StaticBitmap(self, -1, wx.EmptyBitmap(1,1)) self.box = wx.BoxSizer(wx.VERTICAL) @@ -248,12 +240,6 @@ class AttackWindow(wx.Frame): def __init__(self,cl): super(AttackWindow, self).__init__(None, size=(800,800)) - # [CC][X] Same here; no background set for safety. - try: - self.SetBackgroundColour('Default') - except: - pass - self.claim = cl # TODO maybe fitting defaults should come from Preferences. diff --git a/gui/Gui/Scytherthread.py b/gui/Gui/Scytherthread.py index c406bf6..ed0878f 100644 --- a/gui/Gui/Scytherthread.py +++ b/gui/Gui/Scytherthread.py @@ -242,7 +242,7 @@ class ResultWindow(wx.Frame): ): wx.Frame.__init__(self,parentwindow,-1,title,pos,size,style) - self.SetBackgroundColour('Default') + Icon.ScytherIcon(self) self.parent = parent