X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/943ca237540a8bdf62d87f0c94de7d0ad02c0e16..59d04dff037f66e9e73b389de72835211f5f0bcd:/wxPython/demo/wxCalendar.py diff --git a/wxPython/demo/wxCalendar.py b/wxPython/demo/wxCalendar.py index 181e79d85f..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