Thread MainWindow focus: Tk (3 answers)
Opened by alexus-777 at 2004-05-30 23:23

coax
 2004-05-31 17:25
#42132 #42132
User since
2003-08-11
457 Artikel
BenutzerIn
[default_avatar]
Dafuer rufst du $toplevel->focus() auf.

Code: (dl )
1
2
3
4
5
6
7
use Tk;
my $mw = tkinit();
         
$mw->Button(-command => sub {
                            $mw->Toplevel()->focus()
                            }, -text => 'Create Toplevel')->pack();
MainLoop();


Grusz Christian.
,,Das perlt aber heute wieder...'' -- Dittsche

View full thread MainWindow focus: Tk