1

I am using Python tktable (not tkintertable) for making a table with tkinter.

Now my problem is: I want the cell(s) from table to be selected initially. For example, when I open the GUI, cell row=1, col=1 will be auto selected.

I checked the tcl tktable manual, but no luck.

So, how to do this?

nbro
  • 15,395
  • 32
  • 113
  • 196
Eular
  • 1,707
  • 4
  • 26
  • 50
  • 2
    What does "no luck" mean? The documentation clearly shows how to select one or more cells. – Bryan Oakley Jul 18 '16 at 17:21
  • Maybe I missed that, can you please provide the code or keyword argument that I have to passed – Eular Jul 18 '16 at 17:49
  • look for the widget command `selection`. You can use it to get and set the selected cells. – Bryan Oakley Jul 18 '16 at 18:21
  • Well I found the command `selection_set()` but it only select a single or between a range. I can selecte only say the two cell 1,2 and 1,5 . it will select 4 cell instead of two but still it is okay enough for my job. Thanks – Eular Jul 18 '16 at 18:49
  • @BryanOakley Could you please give an answer then? – nbro Sep 01 '16 at 16:44

0 Answers0