#---------------------------------------------------------------------------
class MyMiniFrame(wxMiniFrame):
- def __init__(self, parent, ID, title, pos, size, style):
- wxMiniFrame.__init__(self, parent, ID, title, pos, size, style)
+ def __init__(self, parent, title, style):
+ wxMiniFrame.__init__(self, parent, -1, title, style=style)
panel = wxPanel(self, -1)
button = wxButton(panel, 1003, "Close Me")
#---------------------------------------------------------------------------
def runTest(frame, nb, log):
- win = MyMiniFrame(frame, -1, "This is a wxMiniFrame",
- (250, 250), (200, 200),
+ win = MyMiniFrame(frame, "This is a wxMiniFrame",
wxDEFAULT_FRAME_STYLE | wxTINY_CAPTION_HORIZ)
+ win.SetSize((200, 200))
+ win.CenterOnParent(wxBOTH)
frame.otherWin = win
win.Show(true)
fgs = wxFlexGridSizer(cols=2, vgap=5, hgap=5)
txt = wxStaticText(self, -1,
"These text controls will align their contents\n"
- "to the right when they don't have focus.", style=wxALIGN_RIGHT )
+ "to the right (onwxMSW) when they don't have focus.", style=wxALIGN_RIGHT )
fgs.Add(txt)
fgs.Add(wxRightTextCtrl(self, -1, "", size=(75, -1)))