In this recipe, we will be making use of the following methods:
- dialogCreateDatePicker(): This method is used to display the date with the specified initial date
- dialogGetResponse(): This method is used to get the response, that is, the selection made by the user
- dialogDismiss(): This method is used to make the dialog box invisible after a selection been made by the user
- get("day"): This method is used to access the day in the Date type object
- get("month"): This method is used to access the month in the Date type object
- get("year"): This method is used to access the year in the Date type object
Let's take a look at the following steps:
- Type the following code in the Python script demoDateSelection.py in the current folder ...