Open AceScottie opened 1 year ago
A possible fix for this is to change self.get(), self.insert() and self.delete() functions into super() in all occurrences.
def _set_text(self, txt):
"""Insert text in the entry."""
if 'readonly' in self.state():
readonly = True
self.state(('!readonly',))
else:
readonly = False
super().delete(0, 'end') ##changed to super()
super().insert(0, txt) ##changed to super()
if readonly:
self.state(('readonly',))
#also change self.get() to super.get() on lines 283, 331 and 432
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.