- Bugfix. There is still a bug in the non-PIL output though at resize (check under windows)

This commit is contained in:
ccremers 2006-08-04 23:28:59 +00:00
parent 51da34c0df
commit 6ee0a36360
2 changed files with 4 additions and 4 deletions

View File

@ -83,7 +83,7 @@ class AttackDisplay(wx.ScrolledWindow):
if not bmp.Ok():
bmp = wx.EmptyBitmap((1,1))
else:
(H,W) = (bmp.GetWidth(), bmp.GetHeight())
(W,H) = (bmp.GetWidth(), bmp.GetHeight())
if self.win.fit:
(H,W) = makefit(H,W)
bmp = self.original.Scale(W,H)

View File

@ -26,9 +26,9 @@ class Scyther(object):
if sys.platform.startswith('win'):
""" Windows """
# TODO hardcoded for now, bad
scyther.program = "c:\\Scyther.exe"
if not os.path.isfile(scyther.program):
print "I can't find the Scyther executable %s" % (scyther.program)
self.program = "c:\\Scyther.exe"
if not os.path.isfile(self.program):
print "I can't find the Scyther executable at %s" % (self.program)
else:
""" Non-windows """
self.program = "scyther"