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


I finally fixed this by working around a problem with locales in Ubunut-5.10. Sorry for being a bit off topic.

Gary
_______________________________________________
pygtk mailing list   pygtk@daa.com.au
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/

Reply via email to