This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author jcrmatos
Recipients jcrmatos
Date 2017-09-27.19:09:21
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1506539361.22.0.154975027568.issue31613@psf.upfronthosting.co.za>
In-reply-to
Content
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
History
Date User Action Args
2017-09-27 19:09:21jcrmatossetrecipients: + jcrmatos
2017-09-27 19:09:21jcrmatossetmessageid: <1506539361.22.0.154975027568.issue31613@psf.upfronthosting.co.za>
2017-09-27 19:09:21jcrmatoslinkissue31613 messages
2017-09-27 19:09:21jcrmatoscreate