no_clipboard.py 675 B

12345678910111213141516171819
  1. # -*- coding: utf-8 -*-
  2. # *****************************************************************************
  3. # Copyright (C) 2006-2020 Jorgen Stenarson. <jorgen.stenarson@bostream.nu>
  4. # Copyright (C) 2020 Bassem Girgis. <brgirgis@gmail.com>
  5. #
  6. # Distributed under the terms of the BSD License. The full license is in
  7. # the file COPYING, distributed as part of this software.
  8. # *****************************************************************************
  9. GLOBAL_CLIPBOARD_BUFFER = ""
  10. def get_clipboard_text() -> str:
  11. return GLOBAL_CLIPBOARD_BUFFER
  12. def set_clipboard_text(text: str) -> None:
  13. global GLOBAL_CLIPBOARD_BUFFER
  14. GLOBAL_CLIPBOARD_BUFFER = text