Deactivate a window in Perl::Tk?

J

Josef Moellers

Hi,

I'm writing a small application which might require some action to be
performed before the main functionality can be used, e.g. the powering
on of some device. To alert the user, I create a new Toplevel window
with a message and some buttons (e.g. "Done", "Abort"). I'd like to
disable the main window until the user pressed any one of these buttons
(setting a global variable and destroy-ing the new Toplevel window). I
could, obviously, change the state of all buttons in the main window to
"disabled", but is there an easier way of disabling an entire window?
 
J

John Bokma

Josef said:
Hi,

I'm writing a small application which might require some action to be
performed before the main functionality can be used, e.g. the powering
on of some device. To alert the user, I create a new Toplevel window
with a message and some buttons (e.g. "Done", "Abort"). I'd like to
disable the main window until the user pressed any one of these buttons
(setting a global variable and destroy-ing the new Toplevel window). I
could, obviously, change the state of all buttons in the main window to
"disabled", but is there an easier way of disabling an entire window?

http://www.google.com/search?q=perl+Tk+Modal
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top