in reply to Re^2: Tk MatrixTable - entering data
in thread Tk MatrixTable - entering data

However, I could only see what I had typed in the cell after I moved to another cell (as I used the cursor the cell 'flashed' and went white background).

These widgets have alot of internal bindings to mouse 1 clicks. Have you tried Double-clicking cells to initiate an edit?


I'm not really a human, but I play one on earth.
Old Perl Programmer Haiku ................... flash japh

Replies are listed 'Best First'.
Re^4: Tk MatrixTable - entering data
by merrymonk (Hermit) on Jun 07, 2011 at 17:42 UTC
    On your exmaple, it does not matter if I give one of two mouse clicks. The cell still 'flashes' and I cannot see what I type in until I move to another cell.
    Could this be because of some setting on my PC rather than something associated with the TableMatrix?
      I have found out some more.
      On your exmaple, if I remove the line
      $t->tagConfigure('active', -bg => 'white', -relief => 'sunken');
      I can then see the original text when I type the new text in. It is feint white but I guess another setting will allow this to be darker.

      If I change the 'definition' of the table from
      #$tm2 = $mw->Scrolled('Spreadsheet',
      to
      $tm2 = $mw->Scrolled('TableMatrix',
      then just a single cursor hit allows me to move from cell to cell. The appearance of the display is different but again I suspect I can find something to alter this if necessary.
        Hi, just in case you missed it, in my first example to you, was some commented code, which you may sometimes need.
        # $table->configure(-padx =>( $table->cget(-padx))); # a TableMatrix trick needed sometimes to force an immediate upd +ate

        I'm not really a human, but I play one on earth.
        Old Perl Programmer Haiku ................... flash japh