jcrmatos <[email protected]> added the comment:
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
----------
_______________________________________
Python tracker <[email protected]>
<https://bugs.python.org/issue31613>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com