Skip to content

addHotkey can't put arguments in the function. #7

@JAG3R

Description

@JAG3R

I want to put arguments in addHotkey function like this:
def test(args): print args

hot = pyhk.pyhk()
hot.addHotkey(['1'], test, args=[0])
hot.addHotkey(['2'], test, args=[0,1])
hot.addHotkey(['3'], test, args=[0,1,2,])
hot.addHotkey(['4'], test, args=[0,1,2,3])
hot.addHotkey(['5'], test, args=[0,1,2,3,4])
hot.start()

It will help me a lot. thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions