Hi,
I'm a newbie in the wxPython area, just made some improved "hello world"
only. Great jo ! Really
Looking in the doc, I didn't find the way to have the wxCalendar in my
language (french). This means not only translating months and days but also
starting the weeks with monday in palce of sunday.
Any pointer for this ?
Many thanks in advance.
···
--
Gilles
Hi,
I'm a newbie in the wxPython area, just made some improved "hello world"
only. Great jo ! Really
Looking in the doc, I didn't find the way to have the wxCalendar in my
language (french). This means not only translating months and days but also
starting the weeks with monday in palce of sunday.
Any pointer for this ?
Many thanks in advance.
--
Gilles
Recently, i solved this problem , here is what i do:
- translated months and days i've got such a way:
import locale
locale.setlocale(locale.LC_ALL,'Russian_Russia.1251')
So calendar control see that you locale is not English and set up
himself automatically.Please note, that you should replace
'Russian_Russia.1251' with appropriate string for your country (France?)
- monday first :
self.cal= wxCalendarCtrl(self,-1,wxDateTime_Now(),pos = (0,0),style=wxCAL_MONDAY_FIRST | wxCAL_SHOW_SURROUNDING_WEEKS|wxCAL_SEQUENTIAL_MONTH_SELECTION |wxCAL_SHOW_HOLIDAYS )
wxCAL_MONDAY_FIRST - is the key "magic" word here.
···
--
Igor.
mailto:igor@tyumbit.ru
"Igor Prischepoff" <igor@tyumbit.ru> a �crit dans le message de
news:1572178843.20040114104635@tyumbit.ru...
Many many thanks Igor !
···
--
Gilles