j4321 / tkcalendar

Calendar widget for Tkinter
https://pypi.python.org/pypi/tkcalendar
GNU General Public License v3.0
97 stars 33 forks source link

DateEntry doesn't work on Mac OSX default theme #16

Closed 18melissa40 closed 6 years ago

18melissa40 commented 6 years ago

Clicking on the DateEntry widget's drop-down menu will not produce the drop-down calendar on Mac OSX using the default aqua theme. There is no error message, but nothing happens. Reading the changelog, it looks like this was previously an issue on Windows but has been fixed. However, it is still not working on Mac. Using the "clam" theme does work, however.

j4321 commented 6 years ago

I don't have a Mac, so I won't be able to test my code. But I might have an idea of what the problem is but I'll need your help to check it. Can you run the following code, click on the DateEntry button and tell me what is printed in the console?

from tkcalendar import DateEntry
from tkinter import Tk

root = Tk()

d = DateEntry(root)
d.bind('<1>', lambda e: print(d.identify(e.x, e.y)))
d.pack()
root.mainloop()
j4321 commented 6 years ago

I think the code from branch fix-#16 fixes your issue. Let me know if it does work.