# Built-in Calendar Gramplet

**URL:** <https://gramps.discourse.group/t/built-in-calendar-gramplet/2080>\
**Category:** Development\
**Created:** [December 26, 2021, 7:24pm UTC](https://gramps.discourse.group/t/built-in-calendar-gramplet/2080 "2021-12-26T19:24:16Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![emyoulation](https://yyz2.discourse-cdn.com/free1/user_avatar/gramps.discourse.group/emyoulation/32/67_2.png) [@emyoulation](https://gramps.discourse.group/u/emyoulation)\
**Post date:** [December 26, 2021, 7:24pm UTC](https://gramps.discourse.group/t/built-in-calendar-gramplet/2080/1 "2021-12-26T19:24:16Z")

</div>

Can our Calendar Gramplet have Day of the Week column headers without sacrificing the selector controls?

The [Calendar Gramplet](https://github.com/gramps-project/gramps/blob/master/gramps/plugins/gramplet/calendargramplet.py#L52) is missing day of the week labels. But if the [display option](https://valadoc.org/gtk+-3.0/Gtk.CalendarDisplayOptions.html) for `SHOW_HEADING`

```python
        self.gui.calendar.set_display_options(
			Gtk.CalendarDisplayOptions.SHOW_HEADING)

```

 ![image](https://global.discourse-cdn.com/free1/uploads/gramps/original/2X/3/3322ac49cac8c9819b05f04e1bb6e36de1504383.png)

Is changed to:

```python
        self.gui.calendar.set_display_options(
			Gtk.CalendarDisplayOptions.SHOW_DAY_NAMES)

```

 ![image](https://global.discourse-cdn.com/free1/uploads/gramps/original/2X/e/ea640d97e20fd46d348e96f220b3106135b6f9de.png)

Then you lose the `Month` & `Year` controls. It doesn’t seem to like the options combined with commas or applied sequentially in separate statements.

Combine options with bar delimiter:

```python
    self.gui.calendar.set_display_options(
        Gtk.CalendarDisplayOptions.SHOW_DAY_NAMES |
        Gtk.CalendarDisplayOptions.SHOW_WEEK_NUMBERS |
        Gtk.CalendarDisplayOptions.SHOW_HEADING)

```

It also seems strange that the [GTK widget library](https://www.tutorialspoint.com/pygtk/pygtk_calendar_class.htm) doesn’t seem to have a European calendar – where the weeks start on Mondays. [Automatically adjusts to the locality]

I was initially looking at this Gramplet hoping to add « (`U+00AB`) and » (`U+00BB`) to move by decades instead of years. But that appears to not be an option either.

Based on other applications (that don’t support spans, ranges or date quality), I had anticipated a simple calendar selector when clicking the “Daily Calendar” gadget beside the Date field. Instead, the more complex “Date Selection” dialog appears.

 ![image](https://global.discourse-cdn.com/free1/uploads/gramps/original/2X/1/126e2bd68cea43d1e4902ccaee8d0deb28a4f7c1.png)

 ![image](https://global.discourse-cdn.com/free1/uploads/gramps/original/2X/8/87a39f7c6f80699265f3d1ada8b79fdebbb309e2.png)

---

_[View the full topic](https://gramps.discourse.group/t/built-in-calendar-gramplet/2080)._
