BUGFIX: PIL is tested at the start of the program.

Previously, one would get one void verification result before Scyther detected
PIL was not working. Now nothing is wasted.
This commit is contained in:
Cas Cremers
2008-08-25 14:59:42 +02:00
parent a020cffec7
commit b352044f92
5 changed files with 223 additions and 110 deletions

View File

@@ -33,6 +33,7 @@ import Scytherthread
import Icon
import About
import Editor
import Preference
#---------------------------------------------------------------------------
@@ -44,6 +45,9 @@ ID_CHECK = 103
#---------------------------------------------------------------------------
def MainInitOnce():
result = Preference.usePIL() # Makes sure PIL is tested.
class MainWindow(wx.Frame):
def __init__(self, opts, args):
@@ -54,6 +58,8 @@ class MainWindow(wx.Frame):
self.dirname = os.path.abspath('.')
MainInitOnce()
self.filename = 'noname.spdl'
self.load = False