KDateWidget Class Reference
from PyKDE4.kdeui import *
Detailed Description
A pushbutton to display or allow user selection of a date.
This widget can be used to display or allow user selection of a date.
- See also:
- KDatePicker
Signals | |
changed (QDate date) | |
Methods | |
__init__ (self, QWidget parent=0) | |
__init__ (self, QDate date, QWidget parent=0) | |
KCalendarSystem | calendar (self) |
changed (self, QDate date) | |
QDate | date (self) |
init (self, QDate date) | |
bool | setCalendar (self, KCalendarSystem calendar=0) |
bool | setCalendar (self, QString calendarType) |
bool | setDate (self, QDate date) |
slotDateChanged (self) |
Method Documentation
__init__ | ( | self, | ||
QWidget | parent=0 | |||
) |
Constructs a date selection widget.
Constructs a date selection widget with the initial date set to date.
KCalendarSystem calendar | ( | self ) |
Returns the currently selected calendar system.
- Returns:
- a KCalendarSystem object
changed | ( | self, | ||
QDate | date | |||
) |
Emitted whenever the date of the widget is changed, either with setDate() or via user selection.
- Signal syntax:
QObject.connect(source, SIGNAL("changed(const QDate&)"), target_slot)
QDate date | ( | self ) |
Returns the currently selected date.
init | ( | self, | ||
QDate | date | |||
) |
bool setCalendar | ( | self, | ||
KCalendarSystem | calendar=0 | |||
) |
Changes the calendar system to use. Can use its own local locale if set.
- Parameters:
-
calendar the calendar system object to use, defaults to global
- Returns:
- true if the calendar system was successfully set, false otherwise
bool setCalendar | ( | self, | ||
QString | calendarType | |||
) |
Changes the calendar system to use. Will always use global locale.
- Parameters:
-
calendarType the calendar system type to use
- Returns:
- true if the calendar system was successfully set, false otherwise
bool setDate | ( | self, | ||
QDate | date | |||
) |
Changes the selected date to date.
- Returns:
- true if the date was successfully set, false otherwise
slotDateChanged | ( | self ) |