BUGFIX: 'Default' color not known to newer wxPython versions.

The statement was redundant anyway.
This commit is contained in:
Cas Cremers 2012-04-09 21:14:41 +02:00
parent d9eab0bc02
commit b6ab044cd6
2 changed files with 1 additions and 15 deletions

View File

@ -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.

View File

@ -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