Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

Is there a way to get the line and character value of the current position of the insertion cursor in Tk?

I know there is an insert() function but am not sure if this can be used to read in the position, I think this is more of a function to set the position. Any help would be great. Thanks!

  • Comment on Tk::TextUndo, returning the current insert cursor position?

Replies are listed 'Best First'.
Re: Tk::TextUndo, returning the current insert cursor position?
by japhy (Canon) on Jul 29, 2004 at 20:54 UTC
    I believe it is: my $ins = $widget->index('insert'); Update: reference: google groups
    _____________________________________________________
    Jeff japhy Pinyan, P.L., P.M., P.O.D, X.S.: Perl, regex, and perl hacker
    How can we ever be the sold short or the cheated, we who for every service have long ago been overpaid? ~~ Meister Eckhart