By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
464,806 Members | 1,289 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 464,806 IT Pros & Developers. It's quick & easy.

passing control to other window

P: n/a
i am trying to develop a application using Tkinter in which a new
window pops out on a particular button press.though i can pass control
automatically to that window using .force_focus() method and disabling
all my widgets in previous window but the technique is not so clean.
for eg. when u click 'save' a window pops out asking for location but
u can still close your previous window using the 'cross-mark' on top
right corner with save window still open.
can anyone help me out!
Jun 27 '08 #1
Share this Question
Share on Google+
1 Reply

P: n/a
On 6/21/08, varun chadha <va**********@gmail.comwrote:
i am trying to develop a application using Tkinter in which a new
window pops out on a particular button press.though i can pass control
automatically to that window using .force_focus() method and disabling
all my widgets in previous window but the technique is not so clean.
for eg. when u click 'save' a window pops out asking for location but
u can still close your previous window using the 'cross-mark' on top
right corner with save window still open.
can anyone help me out!
--
http://mail.python.org/mailman/listinfo/python-list
Look up modal dialogs or how to make your new window modal. This will
block the user from accessing the other window. I used a little
Google-fu to find this:

http://effbot.org/tkinterbook/tkinte...og-windows.htm

That should get you started. Unfortunately, I don't use Tkinter much
any more as I went to wxPython instead. Good luck!

Mike
Jun 27 '08 #2

This discussion thread is closed

Replies have been disabled for this discussion.