j4321 / tkcalendar

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

Support for ttk style for dateEntry #42

Closed Garrett-irl closed 5 years ago

Garrett-irl commented 5 years ago

Any chance support could be added for the dateEntry widget when choosing a ttk theme. Seems ok on most but the "black" option has an error. When the date is picked the entry appear blank until highlighted. OS is Windows 10 python 3

j4321 commented 5 years ago

I have tried the themes blue, alt, classic, ubuntu, keramik_alt, elegance, equilux, black, default, arc, radiance, plastik, aquativo, keramik, clam, winxpblue, kroc and clearlooks and the DateEntry adapts poorly only to the black theme.

I don't have a lot of free time these days so this fix won't be a priority but you can manually change the foreground color of the DateEntry with:

style.configure('DateEntry', foreground='black')
Garrett-irl commented 5 years ago

Perfect workaround thanks for the advice.