title: I'm trying copy a string to the clipboard on Linux using Python3 and tkinter. But it's not working
body: <p>I'm looking for some code to append a string to the clipboard and get the text from the clipboard ues Python3 and tkinter. And I find <a href="https://stackoverflow.com/questions/579687/how-do-i-copy-a-string-to-the-clipboard-on-windows-using-python">this question</a>. So I tried these codes:</p>
  
  <pre><code>from tkinter import Tk
  r = Tk()
  r.withdraw()
  r.clipboard_clear()
  r.clipboard_append('i can has clipboardz?')
  r.destroy()
  </code></pre>
  
  <p>They're cleared my clipboard, but didn't append anything.
  <br>
  <br>
  By the way, I tried <code>print(r.clipboard_get())</code>.</p>
  
  <p>It's working out-of-the-box. But I can't append any text to the clipboard.</p>