tools v3.3

This commit is contained in:
Apprentice Alf
2011-02-02 14:41:15 +00:00
parent bc968f8eca
commit 8b632e309f
38 changed files with 454 additions and 1366 deletions

View File

@@ -207,11 +207,11 @@ class MainDialog(Tkinter.Frame):
tpz = False
# Identify any Topaz Files
with open(mobipath, 'rb') as f:
raw = f.read(3)
if raw.startswith('TPZ'):
tpz = True
f.close()
f = file(mobipath, 'rb')
raw = f.read(3)
if raw.startswith('TPZ'):
tpz = True
f.close()
if not outpath:
self.status['text'] = 'No output directory specified'
self.sbotton.configure(state='normal')