Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: tk how to create entry box from menu selection

by zentara (Archbishop)
on Feb 02, 2010 at 18:02 UTC ( [id://820990]=note: print w/replies, xml ) Need Help??


in reply to tk how to create entry box from menu selection

This works on linux
# ----------- sub options { # ----------- $gBuild = "TBD"; ### ? ### print "options; build is $gBuild\n"; # code added by me ###################### use Tk::DialogBox; my $dialog = $mw->DialogBox( -buttons => [qw/Ok Cancel/], -title => "Enter New Value" ); my $dialogE = $dialog->add("Entry"); $dialogE->pack(qw/-padx 10 -pady 10/); ## Clear the Entry before showing the dialog $dialogE->delete( 0, 'end' ); ## Determine whether or not the user hit "Ok" my $button = $dialog->Show(); if ( $button eq "Ok" ) { my $letters = $dialogE->get(); print "$letters was submitted\n"; } ######################################## } # end of options()

I'm not really a human, but I play one on earth.
Old Perl Programmer Haiku

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (4)
As of 2024-04-20 11:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found