Message303169
Hello,
Here is some example code:
from tkinter import Label, Tk
from tkinter.simpledialog import Dialog
class CalendarDialog(Dialog):
def __init__(self, parent, title='', year=0, month=0):
self.year = year # type: int
self.month = month # type: int
Dialog.__init__(self, parent, 'Select a date')
def body(self, parent):
Label(parent, text='A label').pack()
master = Tk()
result = CalendarDialog(master, year=2017, month=9).result
master.mainloop()
Best regards,
JM |
|
Date |
User |
Action |
Args |
2017-09-27 19:09:21 | jcrmatos | set | recipients:
+ jcrmatos |
2017-09-27 19:09:21 | jcrmatos | set | messageid: <1506539361.22.0.154975027568.issue31613@psf.upfronthosting.co.za> |
2017-09-27 19:09:21 | jcrmatos | link | issue31613 messages |
2017-09-27 19:09:21 | jcrmatos | create | |
|