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
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