Open mottymu opened 6 years ago
Can you tell me what is written in the Entry when you try to open the calendar? Seems like the error comes from strptime
, so can you also tell me if the following code works for you?
import datetime
today = datetime.datetime.today().strftime('%x')
print(datetime.datetime.strptime(today, '%x').date())
I am working on a way to avoid using strptime
so maybe it will solve your issue, I will let you know when the code is ready so that you can test it.
It's work fine with your code
import datetime today = datetime.datetime.today().strftime('%x') print(datetime.datetime.strptime(today, '%x').date())
the result is
2018-08-08 Process finished with exit code 0
Ok, thanks for the feedback, right now I have no idea what is causing your issue. Can you give me a full snippet of code that reproduces the error you got and tell me how you ran it (python console, IDLE, ...)?
Could you try this version of the code and tell me if you still have the error?
I tried to use Python 3.4/3.6.5/3.7 and my IDE are Pycharm Pro and Sublime text 3 all of them got the same error.
And link that you post I can't download. Could you post new link?
Ok, sorry about the download link, I merged the branch with master and deleted it. You can now directly try the code from the master branch.
I had feedback from another Windows user for whom everything works fine and I also use Appveyor to run tests on Windows (with python 2.7, 3.4, 3.5 and 3.6), so I really have no clue why this i not working for you. I hope that using babel module (needs to be installed) will solve your issue.
I use Windows10 with Python 3.6.5 and tkcalendar 1.2.1
when I use DateEntry() and click on dropdown button it nothing happen and got this error
what I have to do?
Thank you.