views:

41

answers:

2

As per the title, is it possible to change the first day of the week (Monday instead of Sunday)?

A: 

Use the wx.CAL_MONDAY_FIRST value in the style argument of the constructir.

Update

Hier is code generated by wxGlade:

wx.calendar.CalendarCtrl(self, -1, style=wx.calendar.CAL_MONDAY_FIRST)

It has Monday in the leftmost column.

Ber
I've tried it using wx.calendar.CAL_MONDAY_FIRST but that doesn't have any effect - Sunday is still first.
Noah
@Noah I tried this using xwGlade and it works find. See may updated answer
Ber
I'm using wx.lib.calendar.Calendar(), not CalendarCtrl().
Noah
A: 

Found it: you have to call cal.SetBusType().

Noah