0

How can I make a newly created wx.Frame 'block' all other active frames, same as wx.Dialog does. I want to force a user to make a decision (same as dialog) before letting him use any other background active Frames.

1 Answer 1

1

There is a section in the wxPython migration guide on this topic here:

The gist of it is that you should use wx.WindowDisabler or something like this:

def MakeModal(self, modal=True):
    if modal and not hasattr(self, '_disabler'):
        self._disabler = wx.WindowDisabler(self)
    if not modal and hasattr(self, '_disabler'):
        del self._disabler
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.