Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: Widget Type

by Tanalis (Curate)
on Jun 26, 2003 at 16:28 UTC ( [id://269297]=note: print w/replies, xml ) Need Help??


in reply to Widget Type

You can associate widgets with variables, and they'll take on the value of that variable.

You probably need something like a LabEntry or an Entry widget (depending on what you're doing with it) - and you'd use it something like this:

my $mw = new MainWindow(); my $text = "This is an entry box"; $entry = $mw->Entry(-textvariable => \$text)->pack();
That'll give you a text entry box, containing the text in $text, and allow you to change the text. Anything the user enters will automatically be stored in the $text variable.

Hope that helps.
-- Foxcub
#include www.liquidfusion.org.uk

Edit: Corrections/clarifications.

Log In?
Username:
Password:

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

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

    No recent polls found