X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/493f1553fdfd276ed9944c5f1c070ee34be13b52..224311348756853f888aca53e772072c0ce16b73:/wxPython/demo/wxCalendar.py?ds=inline diff --git a/wxPython/demo/wxCalendar.py b/wxPython/demo/wxCalendar.py index 962679a351..487eeb39c1 100644 --- a/wxPython/demo/wxCalendar.py +++ b/wxPython/demo/wxCalendar.py @@ -62,7 +62,10 @@ class TestPanel(wxPanel): monthlist = GetMonthList() mID = NewId() - self.date = wxComboBox(self, mID, Month[start_month], wxPoint(100, 20), wxSize(90, -1), monthlist, wxCB_DROPDOWN) + self.date = wxComboBox(self, mID, "", + wxPoint(100, 20), wxSize(90, -1), + monthlist, wxCB_DROPDOWN) + self.date.SetSelection(start_month-1) EVT_COMBOBOX(self, mID, self.EvtComboBox) # set start month and year @@ -229,7 +232,8 @@ class TestPanel(wxPanel): class CalendFrame(wxFrame): def __init__(self, parent, id, title, log): - wxFrame.__init__(self, parent, id, title, wxPyDefaultPosition, wxSize(400, 400)) + wxFrame.__init__(self, parent, id, title, size=wxSize(400, 400), + style=wxDEFAULT_FRAME_STYLE|wxNO_FULL_REPAINT_ON_RESIZE) EVT_CLOSE(self, self.OnCloseWindow) self.log = log