def on_btn_copy_to_clipboard_clicked(self):
        snapshot_id = self.get_list_snapshot_id()
        if len(snapshot_id) < 1:
            return

        path = self.snapshots.get_snapshot_path_to(snapshot_id, self.path)
        kde4tools.clipboard_set_path(self.kapp, path)
	def on_btn_copy_to_clipboard_clicked( self ):
		selected_file = str( self.list_files_view_sort_filter_proxy.data( self.list_files_view.currentIndex() ).toString() )
		if len( selected_file ) <= 0:
			return

		path = self.snapshots.get_snapshot_path_to( self.snapshot_id, os.path.join( self.path, selected_file ) )
		kde4tools.clipboard_set_path( self.kapp, path )
Exemplo n.º 3
0
    def on_btn_copy_to_clipboard_clicked(self):
        selected_file = str(
            self.list_files_view_sort_filter_proxy.data(
                self.list_files_view.currentIndex()).toString())
        if len(selected_file) <= 0:
            return

        path = self.snapshots.get_snapshot_path_to(
            self.snapshot_id, os.path.join(self.path, selected_file))
        kde4tools.clipboard_set_path(self.kapp, path)