Python

NAVIGATION
CATEGORIES
REFERRENCE
LINKS
  • Newbie frame-in-frame question

    1 answers - 685 bytes - related search similar search Add To My Delicious Add To My Stumble Upon Add To My Google Mark Add To My Facebook Add To My Digg Add To My Reddit

    A VERY basic question: What do I need to add or change to get the
    child frames inside the panel?
    import wx
    class MainFrame(wx.Frame):
    def __init__(self, parent, id, title):
    wx.Frameinit__(self, parent, -1, title)
    pnl = wx.Panel(self,-1)
    win1 = ChildFrame(pnl, -1, "win 1")
    win2 = ChildFrame(pnl, -1, "win 2")
    class ChildFrame(wx.Frame):
    def __init__(self, parent, id, title):
    wx.Frameinit__(self, parent, -1, title, size = (300, 300))
    self.Show(True)
    if __name__ == '__main__':
    app = wx.App(redirect=False)
    frame = MainFrame(None, -1, "Frame in frame test")
    frame.Show()
    app.MainLoop()
    Bob
  • No.1 | | 602 bytes | |

    Bob Klahn <bobstones (AT) comcast (DOT) netwrote:

    A VERY basic question: What do I need to add or change to get the
    child frames inside the panel?

    If you want a multi-document interface (like Photoshop on Windows), you
    can see the demo for the Frames and Dialogs -MDIWindows demo.

    than that, I don't know what you mean, so I can't suggest an
    alternative.

    - Josiah

    To unsubscribe, e-mail: wxPython-users-unsubscribe (AT) lists (DOT) wxwidgets.org
    For additional commands, e-mail: wxPython-users-help (AT) lists (DOT) wxwidgets.org

Re: Newbie frame-in-frame question


max 4000 letters.
Your nickname that display:
In order to stop the spam: 7 + 6 =
QUESTION ON "Python"

EMSDN.COM