]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/demo/wxCalendar.py
fixed the width of the (week day as number) field, should be 1, not 2
[wxWidgets.git] / wxPython / demo / wxCalendar.py
index 181e79d85f329107b9f4abd478a06493a75331d2..487eeb39c15974584094800c419fe35c94114c6a 100644 (file)
@@ -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