Top-rated recipes tagged "datepicker"http://code.activestate.com/recipes/tags/datepicker/top/2017-06-19T18:22:01-07:00ActiveState Code RecipesTkinter Datepicker (like the jQuery UI datepicker) (Python)
2017-06-19T18:22:01-07:00Miguel Martínez Lópezhttp://code.activestate.com/recipes/users/4189907/http://code.activestate.com/recipes/580725-tkinter-datepicker-like-the-jquery-ui-datepicker/
<p style="color: grey">
Python
recipe 580725
by <a href="/recipes/users/4189907/">Miguel Martínez López</a>
(<a href="/recipes/tags/calendar/">calendar</a>, <a href="/recipes/tags/datepicker/">datepicker</a>, <a href="/recipes/tags/megawidget/">megawidget</a>, <a href="/recipes/tags/tkinter/">tkinter</a>).
Revision 18.
</p>
<p>It's based on ttkcalendar.py. But the internals are totally changed.I don't use for example the Treeview widget. I added more features also:</p>
<ul>
<li>On mouse over, the day label changes the background</li>
<li>The selected day has an outstanding style</li>
<li>Added support for many hotkeys</li>
</ul>
<p>These are the default bindings:</p>
<ul>
<li><p><em>Click button 1 on entry:</em> Show calendar</p></li>
<li><p><em>Click button 1 outside entry and calendar:</em> Hide calendar</p></li>
<li><p><em>Escape:</em> Hide calendar</p></li>
<li><p><em>CTRL + PAGE UP:</em> Move to the previous month.</p></li>
<li><p><em>CTRL + PAGE DOWN:</em> Move to the next month.</p></li>
<li><p><em>CTRL + SHIFT + PAGE UP:</em> Move to the previous year.</p></li>
<li><p><em>CTRL + SHIFT + PAGE DOWN:</em> Move to the next year.</p></li>
<li><p><em>CTRL + LEFT:</em> Move to the previous day.</p></li>
<li><p><em>CTRL + RIGHT:</em> Move to the next day.</p></li>
<li><p><em>CTRL + UP:</em> Move to the previous week.</p></li>
<li><p><em>CTRL + DOWN:</em> Move to the next week.</p></li>
<li><p><em>CTRL + END:</em> Close the datepicker and erase the date.</p></li>
<li><p><em>CTRL + HOME:</em> Move to the current month.</p></li>
<li><p><em>CTRL + SPACE:</em> Show date on calendar</p></li>
<li><p><em>CTRL + Return:</em> Set current selection to entry</p></li>
</ul>