Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: Tk design user interface

by Tux (Canon)
on Jan 23, 2020 at 12:59 UTC ( [id://11111772]=note: print w/replies, xml ) Need Help??


in reply to Tk design user interface

Something like this? (use a Frame):

use strict; use warnings; use Tk; my $mw = new MainWindow; $mw->geometry ("400x400"); my $tf = $mw->Frame->pack ( -side => "top", -expand => 0, -fill => "x", ); my $label = $tf->Label ( -text => "File?", -anchor => "w", )->pack ( -side => "left", -anchor => "w", -padx => 20, -pady => 10, ); my $entry = $tf->Entry->pack ( -side => "left", -anchor => "w", -padx => 20, -pady => 10, ); my $button = $tf->Button ( -text => "search!", -width => 30, )->pack ( -side => "right", -anchor => "e", -padx => 20, -pady => 10, ); my $text = $mw->Text ( -width => 15, -height => 3, )->pack ( -side => "top", -anchor => "nw", -padx => 20, -pady => 10, -expand => 1, -fill => "both", ); MainLoop;

Enjoy, Have FUN! H.Merijn

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

    Thank you!

Log In?
Username:
Password:

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

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

    No recent polls found