-
Notifications
You must be signed in to change notification settings - Fork 36
Open
Description
If you create a subclass of DateEntry then calendar.parse_date uses subclass.get() rather than super().get().
example: (remove the # in the get(self) function to see the error in parse_date)
Error occurs when configuring the DateEntry in any way.
import tkinter as tk
from tkcalendar import DateEntry
class overDateEntry(DateEntry):
def __init__(self, master, **kwargs):
super(overDateEntry, self).__init__(master)
self.strvar = tk.StringVar()
kwargs['textvariable'] = self.strvar
self.configure(**kwargs)
def get(self):
return self.strvar.get()#, True
def getty(self):
return self.strvar.get(), True
root = tk.Tk()
de = overDateEntry(root)
de.pack(side=tk.TOP)
root.mainloop()Metadata
Metadata
Assignees
Labels
No labels