in reply to It seems that Tk has an error in some version

I don't have your platform to test on, but it sounds like a common focus issue. Try clicking the entry with the mouse first, before typing, or do this:
$ent->focus; MainLoop;
Only one widget can have keyboard focus at a time, often you will see a binding like this, to ensure an entry or text widget always gets keyboard focus:
$mw->bind( '<Any-Enter>' => sub { $ent->Tk::focus } );
that will ensure that if your mouse wanders off of the app, the entry will regain focus when the mouse re-enters the mainwindow.

I'm not really a human, but I play one on earth Remember How Lucky You Are

Replies are listed 'Best First'.
Re^2: It seems that Tk has an error in some version
by Anonymous Monk on Oct 20, 2008 at 08:56 UTC
    Even on windows you have to click on the textfield to be able to type (w/original code)