X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/2f0f3b0fd63ba9e0b1dfa5fb8954bc659d91f122..80a81a12af49ab6acdaf0b62f4aa55e56f45ac6d:/wxPython/demo/wxDialog.py diff --git a/wxPython/demo/wxDialog.py b/wxPython/demo/wxDialog.py index 5a86a0ca0f..9d8272a7e4 100644 --- a/wxPython/demo/wxDialog.py +++ b/wxPython/demo/wxDialog.py @@ -1,6 +1,6 @@ from wxPython.wx import * -from wxPython.help import * +##from wxPython.help import * #--------------------------------------------------------------------------- # Create and set a help provider. Normally you would do this in @@ -28,10 +28,7 @@ class TestDialog(wxDialog): # This next step is the most important, it turns this Python # object into the real wrapper of the dialog (instead of pre) # as far as the wxPython extension is concerned. - self.this = pre.this - self.thisown = pre.thisown - pre.thisown = 0 - + self.PostCreate(pre) # Now continue with the normal construction of the dialog # contents @@ -83,7 +80,7 @@ class TestDialog(wxDialog): btn.SetHelpText("The Cancel button cnacels the dialog. (Duh!)") box.Add(btn, 0, wxALIGN_CENTRE|wxALL, 5) - sizer.AddSizer(box, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5) + sizer.Add(box, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5) self.SetSizer(sizer) self.SetAutoLayout(True)