-
Notifications
You must be signed in to change notification settings - Fork 3
2.1 DirectDatePicker
Fireclaw edited this page Dec 29, 2020
·
2 revisions
Simple date picker showing a month in a clickable grid layout.
from DirectGuiExtension.DirectDatePicker import DirectDatePicker
dp = DirectDatePicker()
usersDate = dp.getDate()
print(usersDate.date)year: integer
The to be displayed year
month: integer
The to be displayed Month
day: integer
The to be selected day
normalDayFrameColor: Four-state color value
Color values for a normal, not-selected, not-current day
activeDayFrameColor: Four-state color value
Color values for the selected day
todayFrameColor: Four-state color value
Color values for the current (as of set in the system) day
getDay
getMonth
getYear
Return the respective selected day, month or year as integer from the calendar
setDay(int day)
setMonth(int month)
setYear(int year)
Sets the currently selected day, month or year respectively
getDate
Returns the selcted date as a datetime object
get
returns the same as getDate