Creating child frames of main frame in wxPython

前端 未结 1 852
闹比i
闹比i 2021-02-07 23:42

I am trying create a new frame in wxPython that is a child of the main frame so that when the main frame is closed, the child frame will also be closed.

Here is a simpli

相关标签:
1条回答
  • 2021-02-08 00:14
    class AboutFrame(wx.Frame):
    
        title = "About this program"
    
        def __init__(self):
            wx.Frame.__init__(self, wx.GetApp().TopWindow, title=self.title)
    
    0 讨论(0)
提交回复
热议问题