X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f6bcfd974ef26faf6f91a62cac09827e09463fd1..fb93b610c5991b12bd6404fe1fc08fd60a30615c:/wxPython/demo/wxFrame.py diff --git a/wxPython/demo/wxFrame.py b/wxPython/demo/wxFrame.py index 9b96b2b7ba..3eac8d119c 100644 --- a/wxPython/demo/wxFrame.py +++ b/wxPython/demo/wxFrame.py @@ -4,8 +4,9 @@ from wxPython.wx import * #--------------------------------------------------------------------------- class MyFrame(wxFrame): - def __init__(self, parent, ID, title, pos, size): - wxFrame.__init__(self, parent, ID, title, pos, size) + def __init__(self, parent, ID, title, pos=wxDefaultPosition, + size=wxDefaultSize, style=wxDEFAULT_FRAME_STYLE): + wxFrame.__init__(self, parent, ID, title, pos, size, style) panel = wxPanel(self, -1) button = wxButton(panel, 1003, "Close Me") @@ -23,7 +24,8 @@ class MyFrame(wxFrame): #--------------------------------------------------------------------------- def runTest(frame, nb, log): - win = MyFrame(frame, -1, "This is a wxFrame", wxDefaultPosition, wxSize(350, 200)) + win = MyFrame(frame, -1, "This is a wxFrame", size=(350, 200), + style = wxDEFAULT_FRAME_STYLE)# | wxFRAME_TOOL_WINDOW ) frame.otherWin = win win.Show(true)