Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions keyboard_handler/linux.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

def parse(s):
"""parse a string like control+f into (modifier, key).
Unknown modifiers will return ValueError."""
Unknown modifiers will return ValueError."""
m = 0
lst = s.split("+")
if not len(lst):
Expand Down Expand Up @@ -59,8 +59,8 @@ def __init__(self, *args, **kwargs):

def register_key(self, key, function):
"""key will be a string, such as control+shift+f.
We need to convert that, using parse_key,
into modifier and key to put into our dictionary."""
We need to convert that, using parse_key,
into modifier and key to put into our dictionary."""
# register key so we know if we have it on event receive.
t = parse(key)
keys[t] = function
Expand Down
8 changes: 6 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,15 +1,19 @@
from setuptools import setup, find_packages


__version__ = 0.52


setup(
name="Keyboard_Handler",
name="keyboard_handler",
version=__version__,
description="Hook global and local keystrokes on multiple platforms",
author="Christopher Toth",
packages=find_packages(),
extras_require={
':sys_platform == "win32"': ["pywin32",],
':sys_platform == "win32"': [
"pywin32",
],
},
classifiers=[
"Development Status :: 4 - Beta",
Expand Down