- Improved error handling.

This commit is contained in:
ccremers
2006-12-14 14:06:50 +00:00
parent 2886e1a7e5
commit 4e2b7c405b
4 changed files with 73 additions and 18 deletions

View File

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