Open yuzibo opened 1 year ago
I can offer what the issue is but I do not know how to fix it fully.
The issue is caused by the bind evens being triggered before the StringVar is populated with text. Babel then gets a blank input which it cannot parse.
add another line after this to set a default date value to correct for this error.
var.set('01/01/1970')
Use whatever format the date_pattern is set to.
A full fix will require finding if the StringVar has a value set and ignoring/setting it if not (like it currently ignores if not StringVar is passed to the constructor).
hi, I am packaging the
tkcalendar
into Debian. But I am stuck with one of the test cases that failed. In my understanding, these test cases should be tested under real \$(DISPLAY) env to emulate tkcalendar's usage scenarios. But on Debian buildd env is pure chroot, there is no \$(DISPLAY) env to offer fortkcalendar
. Fortunately, I got help from Debian python team to useHOME=/tmp xvfb-run -a dh_auto_test -a
to emulate the env.So the last result here is failed in
test_calendar_textvariable
. I guess that it is needed with input something, right? sorry, I am not to used tkcalendar before. Any help will be appricated.