eff_i_g has asked for the wisdom of the Perl Monks concerning the following question:
use warnings; use strict; use Tk; my $mw = MainWindow->new(); $mw->geometry('100x100'); my $dyna = $mw->DynaTabFrame()->pack(); #$dyna->add('test', -label => 'test'); dialog(); MainLoop(); sub dialog { my $text = 'Default'; my $dialog = $mw->DialogBox(-buttons => ['OK']); my $entry = $dialog->Entry(-textvariable => \$text)->pack(); $entry->selectionRange('0.0', 'end'); $dialog->configure(-focus => $entry); $dialog->Show(); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Tk: Cannot focus in DialogBox when DynaTabFrame has page
by lamprecht (Friar) on Jun 19, 2009 at 22:38 UTC | |
|
Re: Tk: Cannot focus in DialogBox when DynaTabFrame has page
by lamprecht (Friar) on Jun 20, 2009 at 07:29 UTC | |
by eff_i_g (Curate) on Jun 22, 2009 at 14:32 UTC | |
|
Re: Tk: Cannot focus in DialogBox when DynaTabFrame has page
by Anonymous Monk on Jun 19, 2009 at 23:05 UTC | |
by lamprecht (Friar) on Jun 20, 2009 at 06:30 UTC | |
by lamprecht (Friar) on Jun 20, 2009 at 07:01 UTC | |
by Anonymous Monk on Jun 20, 2009 at 06:52 UTC |