def activate(self, leaf): clip = gtk.clipboard_get(gtk.gdk.SELECTION_CLIPBOARD) interface.copy_to_clipboard(leaf, clip) xte_paste_argv = ['xte', 'usleep 300000', 'keydown Control_L', 'key v', 'keyup Control_L'] if not utils.spawn_async(xte_paste_argv): raise CommandMissingError('xte')
def activate(self, leaf): clip = gtk.clipboard_get(gtk.gdk.SELECTION_CLIPBOARD) interface.copy_to_clipboard(leaf, clip) xte_paste_argv = ['xte', INIT_DELAY, 'keydown Control_L', 'key v', 'keyup Control_L'] try: utils.spawn_async_raise(xte_paste_argv) except utils.SpawnError as exc: raise OperationError(exc)
def activate(self, leaf): clip = Gtk.Clipboard.get(Gdk.SELECTION_CLIPBOARD) interface.copy_to_clipboard(leaf, clip) xte_paste_argv = ['xte', INIT_DELAY, 'keydown Control_L', 'key v', 'keyup Control_L'] try: utils.spawn_async_raise(xte_paste_argv) except utils.SpawnError as exc: raise OperationError(exc)
def _entry_copy_clipboard(self, entry): # Copy current selection to clipboard # delegate to text entry when in text mode if self.get_in_text_mode(): return False selection = self.current.get_current() if selection is None: return False clip = gtk.clipboard_get(gtk.gdk.SELECTION_CLIPBOARD) return interface.copy_to_clipboard(selection, clip)
def activate(self, leaf): clip = gtk.clipboard_get(gtk.gdk.SELECTION_CLIPBOARD) interface.copy_to_clipboard(leaf, clip)
def activate(self, leaf, ctx): clip = gtk.Clipboard( selection=gtk.gdk.SELECTION_CLIPBOARD, display=ctx.environment.get_screen().get_display()) interface.copy_to_clipboard(leaf, clip)
def activate(self, leaf, ctx): clip = gtk.Clipboard(selection=gtk.gdk.SELECTION_CLIPBOARD, display=ctx.environment.get_screen().get_display()) interface.copy_to_clipboard(leaf, clip)
def activate(self, leaf, ctx): clip = Gtk.Clipboard.get_for_display( ctx.environment.get_screen().get_display(), Gdk.SELECTION_CLIPBOARD) interface.copy_to_clipboard(leaf, clip)