From ad48ebd4920d4f9c37cc48da1a7f8a9aede1b5fa Mon Sep 17 00:00:00 2001 From: jwansek Date: Thu, 12 Apr 2018 15:03:22 +0100 Subject: added setup script for cx_Freeze --- EEHPH2_app.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'EEHPH2_app.py') diff --git a/EEHPH2_app.py b/EEHPH2_app.py index a953cc7..0ea8dc9 100644 --- a/EEHPH2_app.py +++ b/EEHPH2_app.py @@ -39,11 +39,11 @@ class App(tk.Tk): self.img_viewer = ImageViewer(self) paned.add(self.img_viewer) - if start is not None: + if path is not None: if os.path.splitext(path)[1] not in IMPORT_FILES: messagebox.showerror('Error', 'Invalid file type. EEHPH2 accepts only %s.' % (' ').join(IMPORT_FILES)) else: - self.img_viewer.open_image(start) + self.img_viewer.open_image(path) #draw menubar menu = tk.Menu(self) @@ -609,7 +609,6 @@ class Buttons(tk.Frame): Keyword Arguments: event {event} -- Makes this method work with events (default: {None}) """ - Allows the user to copy this file to another directory if self.parent.parent.img_viewer.path is not None: orig = self.parent.parent.img_viewer.path if orig is not None: @@ -625,7 +624,6 @@ class Buttons(tk.Frame): Keyword Arguments: event {event} -- Makes this method work with events (default: {None}) """ - Opens a Toplevel window with the current image shown in full on it. if self.parent.parent.img_viewer.path is not None: FullscreenWindow(self, Image.open(self.parent.parent.img_viewer.path)) -- cgit v1.2.3