diff options
author | Paweł Jastrzębski <pawelj@vulturis.eu> | 2013-06-10 17:18:30 +0200 |
---|---|---|
committer | Paweł Jastrzębski <pawelj@vulturis.eu> | 2013-06-10 17:18:30 +0200 |
commit | 1c7ff5c5978402d04919b7efc9d75672334de687 (patch) | |
tree | beebe296823b93101ed7a5b1cc665e7ec21eb940 /kcc.py | |
parent | Small cleanup (diff) | |
download | kcc-1c7ff5c5978402d04919b7efc9d75672334de687.tar.gz kcc-1c7ff5c5978402d04919b7efc9d75672334de687.tar.bz2 kcc-1c7ff5c5978402d04919b7efc9d75672334de687.zip |
Alpha version of QT GUI
Diffstat (limited to 'kcc.py')
-rw-r--r-- | kcc.py | 28 |
1 files changed, 13 insertions, 15 deletions
diff --git a/kcc.py b/kcc.py index 70287d7..6b71753 100644 --- a/kcc.py +++ b/kcc.py @@ -21,21 +21,19 @@ __license__ = 'ISC' __copyright__ = '2012-2013, Ciro Mattia Gonano <ciromattia@gmail.com>, Pawel Jastrzebski <pawelj@vulturis.eu>' __docformat__ = 'restructuredtext en' -from Tkinter import * -from kcc import gui -from sys import platform -from multiprocessing import freeze_support +import sys import os +from PyQt4 import QtGui +from kcc import KCC_gui, KCC_ui -freeze_support() -root = Tk() -root.resizable(width=False, height=False) -root.config(padx=5, pady=5, takefocus=True) -root.title("Kindle Comic Converter v" + __version__) -#root.wm_attributes("-topmost", 1) -if platform == 'darwin': +if sys.platform == 'darwin': os.environ['PATH'] = '/usr/local/bin:' + os.environ['PATH'] -elif platform == 'win32': - root.iconbitmap(default='comic2ebook.ico') -gui.MainWindow(master=root) -root.mainloop() +app = QtGui.QApplication(sys.argv) +KCC = QtGui.QMainWindow() +ui = KCC_ui.Ui_KCC() +ui.setupUi(KCC) +gui = KCC_gui.Ui_KCC(ui, KCC) +KCC.setWindowTitle("Kindle Comic Converter " + __version__) +KCC.show() +sys.exit(app.exec_()) + |