BUGFIX: 'Default' color not known to newer wxPython versions.
The statement was redundant anyway.
This commit is contained in:
parent
d9eab0bc02
commit
b6ab044cd6
@ -52,14 +52,6 @@ class AttackDisplay(wx.ScrolledWindow):
|
|||||||
|
|
||||||
wx.ScrolledWindow.__init__(self,parent,id=-1)
|
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.Bind(wx.EVT_SIZE, self.OnSize)
|
||||||
self.Image = wx.StaticBitmap(self, -1, wx.EmptyBitmap(1,1))
|
self.Image = wx.StaticBitmap(self, -1, wx.EmptyBitmap(1,1))
|
||||||
self.box = wx.BoxSizer(wx.VERTICAL)
|
self.box = wx.BoxSizer(wx.VERTICAL)
|
||||||
@ -248,12 +240,6 @@ class AttackWindow(wx.Frame):
|
|||||||
def __init__(self,cl):
|
def __init__(self,cl):
|
||||||
super(AttackWindow, self).__init__(None, size=(800,800))
|
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
|
self.claim = cl
|
||||||
|
|
||||||
# TODO maybe fitting defaults should come from Preferences.
|
# TODO maybe fitting defaults should come from Preferences.
|
||||||
|
@ -242,7 +242,7 @@ class ResultWindow(wx.Frame):
|
|||||||
):
|
):
|
||||||
|
|
||||||
wx.Frame.__init__(self,parentwindow,-1,title,pos,size,style)
|
wx.Frame.__init__(self,parentwindow,-1,title,pos,size,style)
|
||||||
self.SetBackgroundColour('Default')
|
|
||||||
Icon.ScytherIcon(self)
|
Icon.ScytherIcon(self)
|
||||||
|
|
||||||
self.parent = parent
|
self.parent = parent
|
||||||
|
Loading…
Reference in New Issue
Block a user