platypush.backend.clipboard

class platypush.backend.clipboard.ClipboardBackend(*args, **kwargs)[source]

This backend monitors for changes in the clipboard and generates even when the user copies a new text.

Requires:

  • pyperclip (pip install pyperclip)

Triggers:

__init__(*args, **kwargs)[source]
Parameters:
  • bus – Reference to the bus object to be used in the backend
  • poll_seconds – If the backend implements a loop method, this parameter expresses how often the loop should run in seconds.
  • kwargs – Key-value configuration for the backend
run()[source]

Starts the backend thread. To be implemented in the derived classes if the loop method isn’t defined.