diff options
| author | jwansek <eddie.atten.ea29@gmail.com> | 2018-04-12 15:03:22 +0100 |
|---|---|---|
| committer | jwansek <eddie.atten.ea29@gmail.com> | 2018-04-12 15:03:22 +0100 |
| commit | ad48ebd4920d4f9c37cc48da1a7f8a9aede1b5fa (patch) | |
| tree | a9ba6c5f450c0a6ca377d5086bf751cd21dd7dee /EEHPH2_app.py | |
| parent | 4927409579cc7ccb60c7581faeefca28425dbe12 (diff) | |
| download | eehph2-ad48ebd4920d4f9c37cc48da1a7f8a9aede1b5fa.tar.gz eehph2-ad48ebd4920d4f9c37cc48da1a7f8a9aede1b5fa.zip | |
added setup script for cx_Freeze
Diffstat (limited to 'EEHPH2_app.py')
| -rw-r--r-- | EEHPH2_app.py | 6 |
1 files changed, 2 insertions, 4 deletions
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)) |
