in reply to Waking up text select
Of course, the same code does nothing under my Win32 box, so I'd assume that is the problem you are referring to. Unfortunatly, I could find no way around it -- normally $mw->idletasks() or $mw->update() fixes problems such as these, but had no effect here. I'll poke a bit more; but failing that, I don't see a simple answer. BTW, this problem is not limited to Tk::ROText -- it appears to be a problem even in Tk::Text. I'm amazed that nobody has noticed this before.#!/usr/bin/perl use Tk; use Tk::ROText; my $mw = MainWindow->new(); my $rot = $mw->ROText; $rot->pack; $rot->insert('end','foo '); $rot->insert('end','the bar',['mytag','sel']); $rot->insert('end',' baz'); MainLoop;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
RE: Re: Waking up text select
by Anonymous Monk on Oct 09, 2000 at 08:14 UTC |