def edi_handler(event, self=self): tkCalendar( self.parent, datetime.now().strftime("%Y"), datetime.now().strftime("%m"), datetime.now().strftime("%d"), self.end_date_text, )