From 6ee0a36360e9cb5cb80551f2d97fbc64360c3199 Mon Sep 17 00:00:00 2001 From: ccremers Date: Fri, 4 Aug 2006 23:28:59 +0000 Subject: [PATCH] - Bugfix. There is still a bug in the non-PIL output though at resize (check under windows) --- gui/Attackwindow.py | 2 +- gui/Scyther.py | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/gui/Attackwindow.py b/gui/Attackwindow.py index ca10341..ca3ee68 100644 --- a/gui/Attackwindow.py +++ b/gui/Attackwindow.py @@ -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) diff --git a/gui/Scyther.py b/gui/Scyther.py index 0c50e71..97cabe5 100755 --- a/gui/Scyther.py +++ b/gui/Scyther.py @@ -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"