in reply to Tk question about Text widget
In my widget, which is derived from Tk::Text, I redefined a function SetCursor, and all worked!
Works okay, any cursor changes are reported.sub SetCursor { my $w = shift; print STDERR "here we know that cursor position changed\n"; my $rc = $w->SUPER::SetCursor(@_); print STDERR "do something more when Text widget calmed down after c +hanging cursor position\n"; return $rc; }
Also, many other intresting event mappings could be done this way.
Courage, the Cowardly Dog.
PS. Something fishy is going on there, or my name is Vadim Konovalov. And it's not.
|
---|