hildon.WeekdayPicker
A widget for selecting weekday(s).
Description
Weekday picker supports non-mutually exclusive selection of days of the week. Selected days of the week are shown with a pushed-in effect.
Weekday picker is used where users are required to pick days on which a certain event should take place, for example, which days a Calendar event should be repeated on. It is used in Calendar in the Repeat dialog, in Tasks in the Repeat dialog and in the Email set-up wizard.
Ancestry
Up to the first non-hildon ancestor:
...
+-- gtk.Container
+-- hildon.WeekdayPicker
Signals
"selection_changed" |
def callback(widget, int, user_param1, ...) |
Constructor
Creates a new hildon.WeekdayPicker widget.
hildon.WeekdayPicker()
|
|
|---|---|
| Returns | A new hildon.WeekdayPicker widget. |
Methods
set_day
Set a day.
hildon.WeekdayPicker.set_day(day)
|
|
|---|---|
day |
Day to be set. Acceptable values are: "monday", "tuesday",
"wednesday", "thursday", "friday",
"saturday" and "sunday". |
unset_day
Deselect a day.
hildon.WeekdayPicker.set_day(day)
|
|
|---|---|
day |
Day to be deselected. Acceptable values are: "monday", "tuesday",
"wednesday", "thursday", "friday",
"saturday" and "sunday". |
toggle_day
Toggle current status of the specified weekday.
hildon.WeekdayPicker.toggle_day(day)
|
|
|---|---|
day |
Day to be toggled. Acceptable values are: "monday", "tuesday",
"wednesday", "thursday", "friday",
"saturday" and "sunday". |
set_all
Select all weekdays.
hildon.WeekdayPicker.set_all()
|
|---|
unset_all
Deselect all weekdays.
hildon.WeekdayPicker.unset_all()
|
|---|
isset_day
Check if the specified day of the week is selected.
hildon.WeekdayPicker.isset_day(day)
|
|
|---|---|
day |
A day of the week. Acceptable values are: "monday", "tuesday",
"wednesday", "thursday", "friday",
"saturday" and "sunday". |
| Returns | True if it's selected and False otherwise. |
Improve this page
