Regards
Josri
Not exactly obvious from the documentation... you need to get the
index of the (special) mark called 'insert':
$pos=$textwidget->index('insert');
Andrew
> : How do I get the cursor position in text widget? eg.line number 5 column
> : number 6. And not x,y position with XEvent()
>
> Not exactly obvious from the documentation... you need to get the
> index of the (special) mark called 'insert':
>
> $pos=$textwidget->index('insert');
RegardsJosri
Regards
Josri