Johan Dahlin wrote:
Gary Jaffe wrote:

I would like a calendar with the weeks starting with Sunday.  I made the
following calendar, but the weeks start on Monday.

self.clndr = gtk.Calendar()
self.clndr.set_display_options(
    gtk.CALENDAR_SHOW_HEADING |
    gtk.CALENDAR_SHOW_DAY_NAMES |
    (~gtk.CALENDAR_NO_MONTH_CHANGE &
    ~gtk.CALENDAR_SHOW_WEEK_NUMBERS &
    ~gtk.CALENDAR_WEEK_START_MONDAY))

This worked properly (weeks starting on Sunday) when I was using
pygtk-2.0.0 with gtk-2.2.4.  But with pygtk-2.8.6 and gtk-2.8.1 the week
starts on Monday.


Matthias Clasen told me that calendar_week_start is ignored since 2.4.
However, in 2.8 it should be enough to just set the LC_TIME variable,
(or LC_ALL) to the locale you wish to use.

Johan

Thanks, that's helpful.

I set my locale to 'en_US' and the output of 'locale -c LC_TIME' is

------------------------------------------------------------------------
LC_TIME
Sun;Mon;Tue;Wed;Thu;Fri;Sat
Sunday;Monday;Tuesday;Wednesday;Thursday;Friday;Saturday
Jan;Feb;Mar;Apr;May;Jun;Jul;Aug;Sep;Oct;Nov;Dec
January;February;March;April;May;June;July;August;September;October;November;December
AM;PM
%a %d %b %Y %r %Z
%m/%d/%Y
%r
%I:%M:%S %p






0
S
7
19971201
4
1
1
1

%a %b %e %H:%M:%S %Z %Y
------------------------------------------------------------------------

but my calendar still starts it's week on Monday.

Any thoughts?

Gary

_______________________________________________
pygtk mailing list   [email protected]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/

Reply via email to