tkmessage box

J

Jason

I have a TkRoot which opens a tktoplevel window:

@toplevel.focus(true)
@toplevel.set_grab
@toplevel.wait_destroy # same as top.tkwait_destroy
@toplevel.release_grab

On my top level window I have a button which when clicked opens a
TkMessageBox. When the message box opens the TkRoot window comes back
into focus above the TopLevel window. How can I stop this from
happening? I want the TkMessageBox to be on top of the TopLevel window
which is on top of the TkRoot.
 
M

Morton Goldberg

I have a TkRoot which opens a tktoplevel window:

@toplevel.focus(true)
@toplevel.set_grab
@toplevel.wait_destroy # same as top.tkwait_destroy
@toplevel.release_grab

On my top level window I have a button which when clicked opens a
TkMessageBox. When the message box opens the TkRoot window comes back
into focus above the TopLevel window. How can I stop this from
happening? I want the TkMessageBox to be on top of the TopLevel window
which is on top of the TkRoot.

I don't think you're posting enough information. You're forcing
anyone motivated to help you to do a whole lot of guessing. I
recommend that you post all your code. If you feel you can't do that,
at least post the sections containing the code that instantiates the
TkMessaageBox and the button callback code that pops it up. You need
to do more to help those who want to help you.

Having said that, I'll make a wild guess. Perhaps you didn't
construct the TkMessageBox by following the example Nagai san
provided recently for making modal child windows. I would think the
same rules apply to the TkMessageBox as to your Toplevel.

Regards, Morton
 

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,981
Messages
2,570,188
Members
46,733
Latest member
LonaMonzon

Latest Threads

Top