#---------------------------------------------------------------------------
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")
#---------------------------------------------------------------------------
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)