wxFormBuilder

Edward Montague quintin9g at gmail.com
Fri Feb 28 07:13:48 EST 2020


 The videos on YouTube by fandangleproductions, have been
of some use.

 However as I also use the Geany editor, I find that I need to
append this extra code to the Python script generated from
wxFormBuilder.

 # --------------------- extra code -------------------

class MyApp(wx.App):
    def OnInit(self):
        self.frame = frameMain(None)
        self.SetTopWindow(self.frame)
        self.frame.Show()
        return True

# end of class MyApp

if __name__ == "__main__":
    app = MyApp(0)
    app.MainLoop()


 Where frameMain is the name of this particular frame.

 This may help you with your Python coding.


More information about the Python-list mailing list