CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Beginner:
Perl Tk - DialogBox help

 



alexb
Novice

Dec 28, 2010, 10:07 PM

Post #1 of 1 (204 views)
Perl Tk - DialogBox help Can't Post

Hello,

I am trying to get some information from the user using a DialogBox.

I have entered a Text widget in it so it is important to enable pressing <Return> key to enter multiple lines in the Text widget.

My problem is that when I press the <Return> key it immediately invokes the default button of the widget.

I have tried to disable the default button, but if I leave the -default_button configuration empty it selects it by herself,

and if I try to enter a button name that is not in the widget (so it won't have a default button) it prints to STDERR (which I really don't want)

is there any way to disable the default button / bind the default button to some other key (like mouse key or something) ?

Thanks

 
 


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives