- Improved error handling.
This commit is contained in:
@@ -31,7 +31,10 @@ class AttackDisplay(wx.ScrolledWindow):
|
||||
# [CC][X] The below statement might be iffy on older versions.
|
||||
# (Python 2.3? What settings?)
|
||||
# Cf. bug report Vimal Subra
|
||||
self.SetBackgroundColour(wx.Colour(255,255,255))
|
||||
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))
|
||||
@@ -137,8 +140,13 @@ class AttackDisplay(wx.ScrolledWindow):
|
||||
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.
|
||||
#self.SetBackgroundColour('Default')
|
||||
try:
|
||||
self.SetBackgroundColour('Default')
|
||||
except:
|
||||
pass
|
||||
|
||||
self.claim = cl
|
||||
|
||||
# TODO maybe fitting defaults should come from Preferences.
|
||||
|
||||
Reference in New Issue
Block a user