Add files via upload

This commit is contained in:
themixray 2021-12-19 17:05:10 +03:00 committed by GitHub
parent 741ea4081f
commit c62119243e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
60 changed files with 422 additions and 130 deletions

View file

@ -8,3 +8,15 @@ def getPressed():
return fkeys
def isPressed(key):
return getPressed()[key]
import inspect as _i
_aliases = {'getPressed':['gprs','getkeys'],
'isPressed':['isprs','keyprs']}
for i in _aliases.items():
exec(f'args = _i.signature({i[0]})')
args = [str(i[1]) for i in dict(args.parameters).items()]
args = ', '.join(args)
for i0 in i[1]:
exec(f"def {i0}({args}):return {i[0]}({args})")