about summary refs log tree commit diff
path: root/kcc.py
diff options
context:
space:
mode:
authorCiro Mattia Gonano <ciromattia@gmail.com>2013-01-10 13:03:13 +0100
committerCiro Mattia Gonano <ciromattia@gmail.com>2013-01-10 13:03:13 +0100
commit988a3575554c3a7675fe66ae014aadf7699d228a (patch)
treef4453c6fadcfbdc84b415049f1515f0723eb4fc4 /kcc.py
parentPut log in a file and only display a generic dialog. (diff)
downloadkcc-988a3575554c3a7675fe66ae014aadf7699d228a.tar.gz
kcc-988a3575554c3a7675fe66ae014aadf7699d228a.tar.bz2
kcc-988a3575554c3a7675fe66ae014aadf7699d228a.zip
Fixed an issue in OPF generation for device resolution (fixes #4)
Reworked options system (call with -h option to get the inline help) (fixes #3)
Diffstat (limited to 'kcc.py')
-rw-r--r--kcc.py16
1 files changed, 8 insertions, 8 deletions
diff --git a/kcc.py b/kcc.py
index 5837651..2d468c5 100644
--- a/kcc.py
+++ b/kcc.py
@@ -33,12 +33,12 @@
 
 __version__ = '1.30'
 
-import sys
-from kcc import comic2ebook
+from Tkinter import *
+from kcc import gui
 
-if __name__ == "__main__":
-    print ('kcc v%(__version__)s. '
-           'Written 2012 by Ciro Mattia Gonano.' % globals())
-    for arg in sys.argv[1:]:
-        comic2ebook.main(['','KHD',arg])
-    sys.exit(0)
+root = Tk()
+app = gui.MainWindow(master=root)
+app.master.title("Kindle Comic Converter v" + __version__)
+app.master.maxsize(1000, 400)
+app.mainloop()
+root.destroy()