diff options
Diffstat (limited to 'win32.py')
-rw-r--r-- | win32.py | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -1,6 +1,6 @@ -# Required for the window title name
from ctypes import wintypes, windll, create_unicode_buffer, WINFUNCTYPE
from typing import Optional, Dict
+import sys
from zope import interface
from interfaces import desktopEvent
@@ -113,8 +113,8 @@ class Listener(object): # Fatal Python error: PyEval_RestoreThread: the function must be
# called with the GIL held, but the GIL is released (the current
# Python thread state is NULL)
- print("Mapping '%s' to default" % title)
- component.handle(Mapping((default, None)))
+ print(f"Mapping '{title}' to default")
+ component.handle(Mapping(("default", None)))
def start(self) -> None:
self.hookIDs = [setHook(self.WinEventProc, et) for et in eventTypes.keys()]
|