Skip to content

Commit f2cc0be

Browse files
committed
Remove pywin32
1 parent f1bf691 commit f2cc0be

File tree

3 files changed

+1
-36
lines changed

3 files changed

+1
-36
lines changed

ledfx/core.py

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -202,17 +202,6 @@ async def flush_loop(self):
202202
def start(self, open_ui=False):
203203
async_fire_and_forget(self.async_start(open_ui=open_ui), self.loop)
204204

205-
# Windows does not seem to handle Ctrl+C well so as a workaround
206-
# register a handler and manually stop the app
207-
if sys.platform == "win32":
208-
import win32api
209-
210-
def handle_win32_interrupt(sig, func=None):
211-
self.stop(exit_code=2)
212-
return True
213-
214-
win32api.SetConsoleCtrlHandler(handle_win32_interrupt, 1)
215-
216205
try:
217206
self.loop.run_forever()
218207
except KeyboardInterrupt:

poetry.lock

Lines changed: 1 addition & 24 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@ python-osc = ">=1.8.3"
5353
pybase64 = "~=1.3.1"
5454
mss = "~=9.0.1"
5555
setuptools = "~=69.0.3"
56-
pywin32 = {version = ">=306", platform = "win32"}
5756
uvloop = {version = ">=0.16.0", markers = "sys_platform != 'win32'"}
5857
rpi-ws281x = {version = ">=4.3.0", platform = "linux"}
5958
python-mbedtls = {version = "^2.8.0", markers = "(sys_platform == 'linux' and platform_machine != 'aarch64' and platform_machine != 'armv7l') or sys_platform == 'win32' or sys_platform == 'darwin'"}

0 commit comments

Comments
 (0)