X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/526954c5968baa29218c994ec48e476ae2bd4b9f..1d156af3247c862e51a7c62f569a3fd302052a42:/docs/doxygen/overviews/python.h diff --git a/docs/doxygen/overviews/python.h b/docs/doxygen/overviews/python.h index 0517b04dcb..04dde37b1d 100644 --- a/docs/doxygen/overviews/python.h +++ b/docs/doxygen/overviews/python.h @@ -206,8 +206,6 @@ python DialogUnits.py 62: frame = MyFrame(NULL, -1, "This is a test") 63: frame.Show(true) 64: -65: # Tell wxWidgets that this is our main window -66: self.SetTopWindow(frame) 67: 68: # Return a success flag 69: return true @@ -257,8 +255,7 @@ Destroy() method as shown on line 36. Just like wxWidgets in C++, wxPython apps need to create a class derived from @c wxApp (line 56) that implements a method named @c OnInit, (line 59.) This -method should create the application's main window (line 62) and use -wxApp.SetTopWindow() (line 66) to inform wxWidgets about it. +method should create the application's main window (line 62) and show it. And finally, at line 72 an instance of the application class is created. At this point wxPython finishes initializing itself, and calls the @c OnInit