Calendar Dialog

Use the calendar option to create a calendar dialog. Zenity returns the selected date to standard output. If no date is specified, the dialog uses the current date.

The calendar dialog supports the following options

The following example script shows how to create a calendar dialog:

import zenity
res, data=zenity.show(calendar, title="Select a Date",
    text="Click on a date to select that date.",
    day=10, month=8, year=2004)

if res:
    print(data)

Figure 1 Calendar Dialog Example

Last updated