How can I "listen" to stream of key press events with Python?
I want to do something like this:
click_stream.map(lambda k: k.key)
But how can I create this click_stream?
click_stream
It depends on the UI framework, but basically you should:
Subject
Subject.on_next
you can use the timeflies example as a guide.
It depends on the UI framework, but basically you should:
SubjectSubject.on_nextmethod in the event callback passing the required argsSubjectyou can use the timeflies example as a guide.