code: def get_clipboard(self):
          
          Gdk.threads_enter()
          text = self.clipBoard.wait_for_text()
          Gdk.threads_leave()
          if text is not None:
              return text
          else:
              raise Exception("No text found on clipboard")
docs: Read text from the clipboard
          
          Usage: C{clipboard.get_clipboard()}
  
          @return: text contents of the clipboard
          @rtype: C{str}
          @raise Exception: if no text was found on the clipboard