From 10724489fc6346877a593130ebbbb5eea2bba907 Mon Sep 17 00:00:00 2001 From: Ciro Mattia Gonano Date: Thu, 7 Mar 2013 10:51:45 +0100 Subject: Update icon and focusing (#12) --- kcc.py | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'kcc.py') 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() -- cgit 1.4.1