about summary refs log tree commit diff
path: root/kcc.py
diff options
context:
space:
mode:
authorCiro Mattia Gonano <ciromattia@gmail.com>2013-03-07 10:51:45 +0100
committerCiro Mattia Gonano <ciromattia@gmail.com>2013-03-07 10:51:45 +0100
commit10724489fc6346877a593130ebbbb5eea2bba907 (patch)
tree5e82f1dfe30cfcbb7403618799d762202e48476b /kcc.py
parentsetup_console.py py2exe -> cx_freeze (diff)
downloadkcc-10724489fc6346877a593130ebbbb5eea2bba907.tar.gz
kcc-10724489fc6346877a593130ebbbb5eea2bba907.tar.bz2
kcc-10724489fc6346877a593130ebbbb5eea2bba907.zip
Update icon and focusing (#12)
Diffstat (limited to 'kcc.py')
-rw-r--r--kcc.py13
1 files changed, 8 insertions, 5 deletions
diff --git a/kcc.py b/kcc.py
index 10b400a..563530c 100644
--- a/kcc.py
+++ b/kcc.py
@@ -26,11 +26,14 @@ from kcc import gui
 from sys import platform
 import os
 
+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':
     os.environ['PATH'] = '/usr/local/bin:' + os.environ['PATH']
-root = Tk()
-root.resizable(width=FALSE, height=FALSE)
-root.config(padx=5, pady=5)
-gui.MainWindow(master=root, title="Kindle Comic Converter v" + __version__)
-root.tkraise()
+elif platform == 'win32':
+    root.iconbitmap(default='comic2ebook.ico')
+gui.MainWindow(master=root)
 root.mainloop()