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.Frame.__init__(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.Frame.__init__(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 virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.0.408 / Virus Database: 268.13.11/494 - Release Date: 10/24/2006