Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: Tk design user interface

by tybalt89 (Monsignor)
on Jan 23, 2020 at 13:58 UTC ( [id://11111776]=note: print w/replies, xml ) Need Help??


in reply to Tk design user interface

Either

#!/usr/bin/perl use strict; # https://perlmonks.org/?node_id=11111771 use warnings; use Tk; my $mw = new MainWindow; #$mw->geometry("400x400"); my $text = $mw->Text(-width=>15,-height=>3 )->pack(-side=>'bottom',-anchor=>'w',-padx=>20,-pady=>10); my $label = $mw->Label(-text=>"File?",-anchor=>'w' )->pack(-side=>'left',-anchor=>'n',-padx=>20,-pady,10); my $entry = $mw->Entry ->pack(-side=>'left',-anchor=>'n',-padx=>20,-pady=>10); my $button = $mw->Button(-text => "search!",-width=>30 )->pack(-side => 'left',-anchor=>'n',-padx=>20,-pady=>10); MainLoop;

Or

#!/usr/bin/perl use strict; # https://perlmonks.org/?node_id=11111771 use warnings; use Tk; my $mw = new MainWindow; $mw->geometry("400x400"); my $frame = $mw->Frame->pack; my $label = $frame->Label(-text=>"File?",-anchor=>'w' )->pack(-side=>'left',-anchor=>'n',-padx=>20,-pady,10); my $entry = $frame->Entry ->pack(-side=>'left',-anchor=>'n',-padx=>20,-pady=>10); my $button = $frame->Button(-text => "search!",-width=>30 )->pack(-side => 'left',-anchor=>'n',-padx=>20,-pady=>10); my $text = $mw->Text(-width=>15,-height=>3 )->pack(-side=>'top',-anchor=>'w',-padx=>20,-pady=>10); MainLoop;

Replies are listed 'Best First'.
Re^2: Tk design user interface
by Anonymous Monk on Jan 23, 2020 at 18:50 UTC

    yes, ty

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11111776]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (6)
As of 2024-04-26 08:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found