Example #1
0
 def copy(self):
     """
     Copy current table selection to the clipboard.
     """
     view = self.tabs.currentWidget()
     if view is not None:
         mime = table_selection_to_mime_data(view)
         QApplication.clipboard().setMimeData(mime, QClipboard.Clipboard)
Example #2
0
 def copy_selection_to_clipboard(self):
     mime = table_selection_to_mime_data(self.view)
     QApplication.clipboard().setMimeData(mime, QClipboard.Clipboard)