How do I prevent master window from being accessed with child window present?

Cliff Wells logiplex at qwest.net
Fri Aug 29 15:25:46 EDT 2003


On Fri, 2003-08-29 at 11:12, Marc wrote:
> Hi,
> 
> I am doing a gui application where child windows pop up with options
> after the user selects particular buttons from the master window.
> However, the master window is still active underneath the child
> window. If they accidentally press the same button again they can get
> the same copy of two child windows, and that screws up a bunch of the
> database stuff that I am trying to collect.
> 
> I have tried using the 'transient' method, and that prevents the
> master window from being highlighted. But the user can still push
> buttons on the master window if the child window is moved aside.
> 
> How do I disable the master window until the child window is closed?

And which GUI toolkit are you using?  Most have an option to open a
window as "modal" (although this might be limited to dialogs for your
particular toolkit) which means it retains the focus exclusively until
it's dismissed.

-- 
Cliff Wells, Software Engineer
Logiplex Corporation (www.logiplex.net)
(503) 978-6726  (800) 735-0555






More information about the Python-list mailing list