diff --git a/fishy/gui/config_top.py b/fishy/gui/config_top.py index 079f7a1..3a210f2 100644 --- a/fishy/gui/config_top.py +++ b/fishy/gui/config_top.py @@ -121,7 +121,7 @@ def start_semifisher_config(gui: 'GUI'): ttk.Label(controls_frame, text="Notification:").grid(row=0, column=0) - gui._notify = tk.IntVar(0) + gui._notify = tk.IntVar() gui._notify_check = ttk.Checkbutton(controls_frame, command=toggle_sub, variable=gui._notify) gui._notify_check.grid(row=0, column=1) gui._notify_check['state'] = tk.DISABLED diff --git a/fishy/helper/hotkey/hotkey_process.py b/fishy/helper/hotkey/hotkey_process.py index f8219c7..8e11542 100644 --- a/fishy/helper/hotkey/hotkey_process.py +++ b/fishy/helper/hotkey/hotkey_process.py @@ -57,13 +57,14 @@ class HotKey: while True: key = self.outq.get() + if key == "stop": + break + if key in Key: callback = self._hotkeys[key] if callback: playsound(helper.manifest_file("beep.wav"), False) callback() - elif key == "stop": - break time.sleep(0.1) diff --git a/requirements.txt b/requirements.txt index ae5b479..ec9e82c 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,8 +1,8 @@ urllib3 winshell imutils -numpy>1.19.4 -opencv_python==4.5.2.54 +numpy +opencv_python Pillow pypiwin32 ttkthemes @@ -11,7 +11,7 @@ beautifulsoup4 whatsmyip pynput keyboard -playsound==1.2.2 +playsound event-scheduler mouse -d3dshot +d3dshot @ git+https://github.com/fauskanger/D3DShot#egg=D3DShot