Search code examples
python-2.7wxpython

wxDialog inside wxWindows


when wx.Dialog is created it can take any position on the computer screen and take any dimension if style allows. I am trying to build dialogs and confine them within the application window.

I am not sure if my question is clear, I guess an online imagine would be a good example of what I need to do. in the current link, "spectra analysis" is an exact example of what I need.

http://cdn.altrn.tv/s/b80a7d76-3293-45f2-84dc-07ae136df1c6_1_full.gif


Solution

  • The UI in the image is using the Multiple Document Interface, and in wxPython on Windows you can get the same UI by using the wx.MDIParentFrame and wx.MDIChildFrame. However be sure this is what you need because most users do not like MDI and even Microsoft abandonded it in their applications long ago.