]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/demo/wxCalendar.py
LessTif 0.93 does not hang in wxWindow::ChangeFont as 0.87 did:
[wxWidgets.git] / wxPython / demo / wxCalendar.py
index 962679a35105848c94a152a803c497466a3db849..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
@@ -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