parameters: (self, table, ws_read, num_rows)
docstring: Copies the values selected by the user to the system's clipboard
  
          :param table: Table from which the selection will be read
          :param ws_read: The workspace read function, that is used to access the data directly
          :param num_rows: The number of rows in the column
docstring_summary: Copies the values selected by the user to the system's clipboard
docstring_tokens: Copies the values selected by the user to the system s clipboard
function: def copy_bin_values(self, table, ws_read, num_rows):
          """
          Copies the values selected by the user to the system's clipboard
  
          :param table: Table from which the selection will be read
          :param ws_read: The workspace read function, that is used to access the data directly
          :param num_rows: The number of rows in the column
          """
          selection_model = table.selectionModel()
          if not selection_model.hasSelection():
              self.notify_no_selection_to_copy()
              return
  
          self.notify_working()
  
          selected_columns = selection_model.selectedColumns()  # type: list
  
          # Qt gives back a QModelIndex, we need to extract the column from it
          column_data = []
          for index in selected_columns:
              column = index.column()
              data = [str(ws_read(row)[column]) for row in range(num_rows)]
              column_data.append(data)
  
          all_string_rows = []
          for i in range(num_rows):
              # Appends ONE value from each COLUMN, this is because the final string is being built vertically
              # the noqa disables a 'data' variable redefined warning
              all_string_rows.append("\t".join([data[i] for data in column_data]))  # noqa: F812
  
          # Finally all rows are joined together with a new line at the end of each row
          final_string = "\n".join(all_string_rows)
          self.copy_to_clipboard(final_string)
          self.notify_successful_copy()
function_tokens: def copy_bin_values ( self , table , ws_read , num_rows ) : selection_model = table . selectionModel ( ) if not selection_model . hasSelection ( ) : self . notify_no_selection_to_copy ( ) return self . notify_working ( ) selected_columns = selection_model . selectedColumns ( ) # type: list # Qt gives back a QModelIndex, we need to extract the column from it column_data = [ ] for index in selected_columns : column = index . column ( ) data = [ str ( ws_read ( row ) [ column ] ) for row in range ( num_rows ) ] column_data . append ( data ) all_string_rows = [ ] for i in range ( num_rows ) : # Appends ONE value from each COLUMN, this is because the final string is being built vertically # the noqa disables a 'data' variable redefined warning all_string_rows . append ( "\t" . join ( [ data [ i ] for data in column_data ] ) ) # noqa: F812 # Finally all rows are joined together with a new line at the end of each row final_string = "\n" . join ( all_string_rows ) self . copy_to_clipboard ( final_string ) self . notify_successful_copy ( )