dictation-toolbox / dragonfly

Speech recognition framework allowing powerful Python-based scripting and extension of Dragon NaturallySpeaking (DNS), Windows Speech Recognition (WSR), Kaldi and CMU Pocket Sphinx
GNU Lesser General Public License v3.0
388 stars 75 forks source link

Clipboard refactor #325

Closed drmfinlay closed 3 years ago

drmfinlay commented 3 years ago

This PR moves all Clipboard classes under dragonfly/windows for consistency with other platform-dependent code and refactors them so that they have a consistent API across platforms.

The clipboard unit tests are passing for me using Python versions 2.7 and 3.9 on Windows 10. They also pass when using the pyperclip implementation on X11 using Python versions 2.7 and 3.7.

~I still need to adjust the documentation and a few other things before merging.~

Changes

The dragonfly.util sub-package has been kept backwards-compatible.