self.calendar.pack()

def apply(self):
    self.result = self.calendar.selection

def main():
    root = Tkinter.Tk()
root.wm_title('CalendarDialog Demo')

def onclick():
    pass
How do I create a date picker in tkinter?