AyatanaIdo3.CalendarMenuItem

g Atk.ImplementorIface Atk.ImplementorIface Gtk.Widget Gtk.Widget Atk.ImplementorIface->Gtk.Widget AyatanaIdo3.CalendarMenuItem AyatanaIdo3.CalendarMenuItem GObject.GInterface GObject.GInterface GObject.GInterface->Atk.ImplementorIface Gtk.Actionable Gtk.Actionable GObject.GInterface->Gtk.Actionable Gtk.Activatable Gtk.Activatable GObject.GInterface->Gtk.Activatable Gtk.Buildable Gtk.Buildable GObject.GInterface->Gtk.Buildable GObject.InitiallyUnowned GObject.InitiallyUnowned GObject.InitiallyUnowned->Gtk.Widget GObject.Object GObject.Object GObject.Object->GObject.InitiallyUnowned Gtk.MenuItem Gtk.MenuItem Gtk.Actionable->Gtk.MenuItem Gtk.Activatable->Gtk.MenuItem Gtk.Bin Gtk.Bin Gtk.Bin->Gtk.MenuItem Gtk.Buildable->Gtk.Widget Gtk.Container Gtk.Container Gtk.Container->Gtk.Bin Gtk.MenuItem->AyatanaIdo3.CalendarMenuItem Gtk.Widget->Gtk.Container

Subclasses:

None

Methods

Inherited:

Gtk.MenuItem (20), Gtk.Bin (1), Gtk.Container (35), Gtk.Widget (278), GObject.Object (37), Gtk.Buildable (10), Gtk.Actionable (5), Gtk.Activatable (6)

Structs:

Gtk.ContainerClass (5), Gtk.WidgetClass (12), GObject.ObjectClass (5)

class

new ()

class

new_from_model (menuitem, actions)

clear_marks ()

get_calendar ()

get_date ()

get_display_options ()

mark_day (day)

set_date (year, month, day)

set_display_options (flags)

unmark_day (day)

Virtual Methods

Inherited:

Gtk.MenuItem (8), Gtk.Container (10), Gtk.Widget (82), GObject.Object (7), Gtk.Buildable (10), Gtk.Actionable (4), Gtk.Activatable (2)

Properties

Inherited:

Gtk.MenuItem (5), Gtk.Container (3), Gtk.Widget (39), Gtk.Actionable (2), Gtk.Activatable (2)

Style Properties

Inherited:

Gtk.MenuItem (6), Gtk.Widget (17)

Signals

Inherited:

Gtk.MenuItem (6), Gtk.Container (4), Gtk.Widget (69), GObject.Object (1)

Name

Short Description

day-selected

day-selected-double-click

month-changed

Fields

Inherited:

Gtk.MenuItem (6), Gtk.Container (4), Gtk.Widget (69), GObject.Object (1)

Name

Type

Access

Description

parent_instance

Gtk.MenuItem

r

Class Details

class AyatanaIdo3.CalendarMenuItem(*args, **kwargs)
Bases:

Gtk.MenuItem

Abstract:

No

Structure:

AyatanaIdo3.CalendarMenuItemClass

classmethod new()
Returns:

a new AyatanaIdo3.CalendarMenuItem.

Return type:

Gtk.Widget

Creates a new AyatanaIdo3.CalendarMenuItem

classmethod new_from_model(menuitem, actions)
Parameters:
Return type:

Gtk.MenuItem

clear_marks()

Remove all visual markers.

get_calendar()
Returns:

The Gtk.Calendar used in this item.

Return type:

Gtk.Widget

Returns the calendar associated with this menu item.

get_date()
Returns:

year:

location to store the year as a decimal number (e.g. 2011), or None.

month:

location to store the month number (between 0 and 11), or None.

day:

location to store the day number (between 1 and 31), or None.

Return type:

(year: int, month: int, day: int)

Gets the selected date.

get_display_options()
Returns:

the display options in use

Return type:

Gtk.CalendarDisplayOptions

Get the display options for the calendar.

mark_day(day)
Parameters:

day (int) – the day number to unmark between 1 and 31.

Returns:

True

Return type:

bool

Places a visual marker on a particular day.

set_date(year, month, day)
Parameters:
  • year (int) – the year to show (e.g. 2011).

  • month (int) – a month number (between 0 and 11).

  • day (int) – The day number (between 1 and 31).

Returns:

True

Return type:

bool

Set the date shown on the calendar.

set_display_options(flags)
Parameters:

flags (Gtk.CalendarDisplayOptions) – the display options to set

Set the display options for the calendar.

unmark_day(day)
Parameters:

day (int) – the day number to unmark between 1 and 31.

Returns:

True

Return type:

bool

Removes the visual marker from a particular day.

Signal Details

AyatanaIdo3.CalendarMenuItem.signals.day_selected(calendar_menu_item)
Signal Name:

day-selected

Flags:

RUN_LAST

Parameters:

calendar_menu_item (AyatanaIdo3.CalendarMenuItem) – The object which received the signal

AyatanaIdo3.CalendarMenuItem.signals.day_selected_double_click(calendar_menu_item)
Signal Name:

day-selected-double-click

Flags:

RUN_LAST

Parameters:

calendar_menu_item (AyatanaIdo3.CalendarMenuItem) – The object which received the signal

AyatanaIdo3.CalendarMenuItem.signals.month_changed(calendar_menu_item)
Signal Name:

month-changed

Flags:

RUN_LAST

Parameters:

calendar_menu_item (AyatanaIdo3.CalendarMenuItem) – The object which received the signal