Questions tagged [selection]

The selection can refer to text that has been highlighted, or it can refer to a choice made in UI elements that require one, e.g. a particular option in an HTML `select`. Selection is also the stage of a genetic algorithm in which individual genomes are chosen from a population for later breeding.

The selection can refer to:

  • a range of text that has been highlighted, a feature intended to mark the text for copying and, in editable areas, pasting over.

  • a choice made in UI elements that require one, e.g. a particular option in an HTML select. In UI elements, the selection is often made by means of drop-down boxes, radio buttons, checkboxes, file choosers, and more. Selections can be made with the mouse by clicking and dragging over the desired text, or by holding down the Shift key while navigating the text with the arrow keys. Selections are not usually permanent marks, and can often be removed just by clicking or selecting elsewhere.

  • the stage in genetic algorithms / programming is in which individual genomes are chosen from a population for later breeding (recombination or crossover).

4031 questions
1
vote
1 answer

Pandas DataFrame : selection of multiple elements in several columns

I have this Python Pandas DataFrame DF : DICT = { 'letter': ['A','B','C','A','B','C','A','B','C'], 'number': [1,1,1,2,2,2,3,3,3], 'word' : ['one','two','three','three','two','one','two','one','three']} DF =…
Covich
  • 2,544
  • 4
  • 26
  • 37
1
vote
0 answers

jQuery sortable with table cells in a column

I need to have cells in a particular column of a table sortable. http://jsbin.com/ilodi4 The problem is that the current code makes the whole row sortable instead of just make the cells sortable. Cells for a given column should be vertically…
EarlyPoster
  • 1,068
  • 1
  • 11
  • 27
1
vote
1 answer

Can't copy selection from another workbook

I've been trying to copy data from another workbook in the same instance of excel without success. What I need is to copy the selection I've made on the other opened workbook and paste it to the active workbook. Turns out that when I run the VBA…
FerPavao
  • 19
  • 7
1
vote
1 answer

Connecting selection of row in 2 QTableWidget

I am trying to connect row selections from two QTableWidget. I mean, when I select one row in Table 1, I want my program selects the same row in table 2. The two table dont have the same number of column so I cannot just select one item for the…
froz
  • 163
  • 1
  • 12
1
vote
1 answer

Multiple Linear regression and selection of columns error

My problem is that when I tried to fit the model I got this error. I don't know what caused this error but probably the selection of independent variables is not correct. Here's the error ValueError: Found input variables with inconsistent numbers…
Ahmed Achour
  • 105
  • 1
  • 11
1
vote
2 answers

Range text is same after deselect in contenteditable

I have a "mouseup" event handler inside a contenteditable to check wether text has been selected or not. If you highlight text after typing, all is good, but if you click again (to deselect text) the console shows that range.toString() is the same…
bblocs3141
  • 133
  • 2
  • 12
1
vote
1 answer

Selective text using Python

I am a beginner in python and I am using it for my master thesis, so I don't know that much. I have a bunch of annual reports (in txt format) files and I want to select all the text between "ITEM1." and "ITEM2.". I am using the re package. My…
Adrian
  • 774
  • 7
  • 26
1
vote
1 answer

Query dropdown selected option

I am trying to make a dropdown selection with jquery over bootstrap, for me this seems to be hard to be done. This is my code:
1
vote
1 answer

in VBA Why does the Selection Object act differently when indexed?

hopefully you can help me with this! I am writing a code in VBA and I am having issues with the Selection object acting differently than I expect. When I write a for loop as in For Each Cell in Selection MsgBox Cell.Value Next Cell It works as…
SRT HellKitty
  • 577
  • 3
  • 10
1
vote
1 answer

Get file path after selection of an object

I am writing a simple Eclipse-plugin that displays a UI after right-mouse click on a specific element, located inside an xml file. In the handler, i need to get first the file path, which contains the selected object. I tried the following posts…
1
vote
3 answers

How to programmatically select ALL DataGrid rows matching criteria

I want to pass a value and a column index to a method that will programmatically select the rows in a DataGrid control that match the value in the given column. My code is like this: private void HighlightSelections(string selection, int…
Aowei Xu
  • 61
  • 4
1
vote
3 answers

Continuously updating rectangle bounds is very slow in Google Maps javascript API v3

I haven't found any control for selecting an area on a map that I liked, so I decided to write my own. It works fine, but in IE it's painfully slow at updating the selection box. I'm using the rectangle object in Google Maps API v3 to display the…
aspartame
  • 4,622
  • 7
  • 36
  • 39
1
vote
0 answers

Force selection of full elements

When making a hex viewer, it does not make sense to let the user select a half of a byte, so I'm trying to force the selection to snap to byte boundaries. In CSS, I could set user-select to all, but that makes it very difficult to select more than…
riv
  • 6,846
  • 2
  • 34
  • 63
1
vote
2 answers

JavaFX : Show prompt text again after selecting blank item

I just started transitioning from Swing to JavaFX (forever) and i've gotten pretty good so far! I have managed to populate a ComboBox from a list of entities and adding a blank item on top of the list, like such : supplierSearch = new ComboBox(); …
Martin
  • 1,977
  • 5
  • 30
  • 67
1
vote
3 answers

Selection sort in C. Why?

This is simple code in C (selection sort): #include #include #define ItemCount 10 int numbers[ItemCount] = {4,9,3,7,2,5,10,2,12,6}; int MinNumberIndex(int start) { int i; int minindex = start; for (i = start +…
Domiik
  • 233
  • 1
  • 5
  • 14
1 2 3
99
100