diff --git a/iwii_photobooth.py b/iwii_photobooth.py index 16661fa..226a0fa 100644 --- a/iwii_photobooth.py +++ b/iwii_photobooth.py @@ -43,9 +43,8 @@ def handle_action_exceptions(func: Callable): @handle_action_exceptions def open_preview(event: tk.Event): - globals()["ev"] = event - file=filedialog.askopenfilename( - #parent=event.widget.master, + file = filedialog.askopenfilename( + parent=event.widget.master, title="Open Image", initialdir=Path.home(), filetypes=[