{
"info": {
"author": "Juliette Monsel",
"author_email": "j_4321@protonmail.com",
"bugtrack_url": null,
"classifiers": [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
"Operating System :: OS Independent",
"Programming Language :: Python :: 2",
"Programming Language :: Python :: 2.6",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.4",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Software Development :: Widget Sets"
],
"description": "##########\ntkcalendar\n##########\n\n|Release| |Travis| |Appveyor| |Codecov| |Windows| |Linux| |Mac| |License| |Doc|\n\ntkcalendar is a python module that provides the Calendar and DateEntry widgets for Tkinter.\nThe DateEntry widget is similar to a Combobox, but the drop-down is not a list but a Calendar to select a date.\nEvents can be displayed in the Calendar with custom colors and a tooltip displays the event list for a given day.\ntkcalendar is compatible with both Python 2 and Python 3.\nIt supports many locale settings (e.g. 'fr_FR', 'en_US', ..) and the colors are customizable.\n\nThe documentation is also available here: https://tkcalendar.readthedocs.io\n\n.. contents:: Table of Contents\n\nRequirements\n============\n\n- Linux, Windows, OSX\n- Python 2 or 3\n\nAnd the python packages:\n\n- tkinter (included in the python distribution for Windows)\n- `babel `_\n\n\nInstallation\n============\n\n- Ubuntu: use the PPA `ppa:j-4321-i/ppa `__\n\n ::\n\n $ sudo add-apt-repository ppa:j-4321-i/ppa\n $ sudo apt-get update\n $ sudo apt-get install python(3)-tkcalendar\n\n- Archlinux:\n\n The package is available on `AUR `__\n\n- With pip:\n\n ::\n\n $ pip install tkcalendar\n\n\nDocumentation\n=============\n\nCalendar widget\n---------------\n\nSyntax\n~~~~~~\n\n ::\n\n Calendar(master=None, **kw)\n\nWidget keyword options\n~~~~~~~~~~~~~~~~~~~~~~\n\n* Standard options\n\n cursor : str\n cursor to display when the pointer is in the widget\n\n font : str such as \"Arial 20 bold\" or a Tkinter Font instance\n font of the calendar\n\n borderwidth : int\n width of the border around the calendar\n\n state : str\n \"normal\" or \"disabled\" (unresponsive widget)\n\n* Widget-specific options:\n\n year : int\n intinitially displayed year, default is current year.\n\n month : int\n initially displayed month, default is current month.\n\n day : int\n initially selected day, if month or year is given but not day, no initial selection, otherwise, default is today.\n\n firstweekday : \"monday\" or \"sunday\"\n first day of the week\n\n weekenddays : list\n days to be displayed as week-end days given as a list of integers corresponding to the number of the day in the week (e.g. [6, 7] for the last two days of the week).\n\n mindate : datetime.date or datetime.datetime (default is None)\n minimum allowed date\n\n maxdate : datetime.date or datetime.datetime (default is None)\n maximum allowed date\n\n showweeknumbers : bool (default is True)\n whether to display week numbers.\n\n showothermonthdays : bool (default is True)\n whether to display the last days of the previous month and the first of the next month.\n\n locale : str\n locale to use, e.g. 'en_US'\n\n date_pattern : str\n date pattern used to format the date as a string. The default pattern used\n is ``babel``'s short date format in the calendar's locale.\n\n A valid pattern is a combination of 'd', 'm' and 'y' separated by\n non letter characters to indicate how and in which order the\n year, month and day should be displayed.\n\n = =========================================================================\n d 'd' for the day of month number without padding, 'dd' for a two-digit day\n\n m 'm' for the month number without padding, 'mm' for a two-digit month\n\n y 'yy' for the two last digits of the year, any other number of 'y's for\n the full year with an extra padding of zero if it has less digits than\n the number of 'y's.\n = =========================================================================\n\n Examples for ``datetime.date(2019, 7, 1)``\n\n - 'y-mm-dd' \u2192 '2019-07-01'\n - 'm/d/yy' \u2192 '7/1/19'\n\n selectmode : \"none\" or \"day\" (default)\n whether the user can change the selected day with a mouse click.\n\n textvariable : StringVar\n connect the currently selected date to the variable.\n\n* Style options:\n\n background :\n background color of calendar border and month/year name\n\n foreground :\n foreground color of month/year name\n\n disabledbackground : str\n background color of calendar border and month/year name in disabled state\n\n disabledforeground : str\n foreground color of month/year name in disabled state\n\n bordercolor :\n day border color\n\n headersbackground :\n background color of day names and week numbers\n\n headersforeground :\n foreground color of day names and week numbers\n\n selectbackground :\n background color of selected day\n\n selectforeground :\n foreground color of selected day\n\n disabledselectbackground :\n background color of selected day in disabled state\n\n disabledselectforeground :\n foreground color of selected day in disabled state\n\n normalbackground :\n background color of normal week days\n\n normalforeground :\n foreground color of normal week days\n\n weekendbackground :\n background color of week-end days\n\n weekendforeground :\n foreground color of week-end days\n\n othermonthforeground :\n foreground color of normal week days belonging to the previous/next month\n\n othermonthbackground :\n background color of normal week days belonging to the previous/next month\n\n othermonthweforeground :\n foreground color of week-end days belonging to the previous/next month\n\n othermonthwebackground :\n background color of week-end days belonging to the previous/next month\n\n disableddaybackground :\n background color of days in disabled state\n\n disableddayforeground :\n foreground color of days in disabled state\n\n* Tooltip options (for calevents):\n\n tooltipforeground :\n tooltip text color\n\n tooltipbackground :\n tooltip background color\n\n tooltipalpha : float\n tooltip opacity between 0 and 1\n\n tooltipdelay : int\n delay in ms before displaying the tooltip\n\nVirtual Events\n~~~~~~~~~~~~~~\n\n * A ``<>`` event is generated each time the user selects a day with the mouse.\n\n * A ``<>`` event is generated each time the user changes the displayed month.\n\nWidget methods\n~~~~~~~~~~~~~~\n\n * Standard methods:\n\n - methods common to all tkinter widgets\n (more details `here `__)\n\n - methods common to all ttk widgets\n (more details `here `__)\n\n * Widget-Specific methods:\n\n calevent_cget(ev_id, option) :\n Return value of given option for the event *ev_id*.\n\n calevent_configure(ev_id, \\*\\*kw) :\n Return value of given option for the event *ev_id*.\n\n calevent_create(date, text, tags=[]) :\n Add new event in calendar and return event id.\n\n Options:\n\n *date*: ``datetime.date`` or ``datetime.datetime`` instance.\n\n *text*: text to put in the tooltip associated to date.\n\n *tags*: list of tags to apply to the event. The last tag determines the way the event is displayed.\n If there are several events on the same day, the lowest one (on the tooltip list)\n which has tags determines the colors of the day.\n\n calevent_lower(ev_id, below=None) :\n Lower event *ev_id* in tooltip event list.\n\n *below*: put event below given one, if below is None, put it at the bottom of tooltip event list.\n\n The day's colors are determined by the last tag of the lowest event which has tags.\n\n calevent_raise(ev_id, above=None) :\n Raise event *ev_id* in tooltip event list.\n\n *above*: put *ev_id* above given one, if above is None, put it on top of tooltip event list.\n\n The day's colors are determined by the last tag of the lowest event which has tags.\n\n calevent_remove(\\*ev_ids, \\*\\*kw) :\n Remove events from calendar.\n\n Arguments: event ids to remove or 'all' to remove them all.\n\n Keyword arguments: *tag*, *date*. They are taken into account only if no id is given.\n Remove all events with given tag on given date. If only date is given,\n remove all events on date and if only tag is given, remove all events with tag.\n\n get_date() :\n If selectmode is 'day', return the string corresponding to the selected date in the\n ``Calendar`` locale, otherwise return ``\"\"``.\n\n get_calevents(date=None, tag=None) :\n Return event ids of events with given tag and on given date.\n\n If only *date* is given, return event ids of all events on date.\n\n If only *tag* is given, return event ids of all events with tag.\n\n If both options are None, return all event ids.\n\n get_displayed_month() :\n Return the currently displayed month in the form of a (month, year) tuple.\n\n see(date) :\n Display the month in which *date* is.\n\n *date*: ``datetime.date`` or ``datetime.datetime`` instance.\n\n selection_clear() :\n Clear the selection.\n\n selection_get() :\n If selectmode is 'day', return the selected date as a ``datetime.date``\n instance, otherwise return ``None``.\n\n selection_set(self, date) :\n If selectmode is 'day', set the selection to *date* where *date* can be either a ``datetime.date``\n instance or a string corresponding to the date format ``\"%x\"`` in the ``Calendar``\n locale. Does nothing if selectmode is ``\"none\"``.\n\n tag_cget(tag, option) :\n Return the value of the tag's option.\n\n tag_config(self, tag, \\*\\*kw) :\n Configure *tag*.\n\n Keyword options: *foreground*, *background* (of the day in the calendar)\n\n tag_delete(tag) :\n Delete given tag and remove it from all events.\n\n tag_names() :\n Return tuple of existing tags.\n\n\n\nDateEntry widget\n----------------\n\nDate selection entry with drop-down calendar.\n\n\nSyntax\n~~~~~~\n\n ::\n\n DateEntry(master=None, **kw)\n\nWidget keyword options\n~~~~~~~~~~~~~~~~~~~~~~\n\n * Keyword options of ``Calendar`` to configure the drop-down calendar\n\n * Keyword options of ``ttk.Entry``\n\n By default, 'validate' is set to 'focusout' and 'validatecommand' is configured so that each\n time the widget looses focus, if the content is not a valid date (in locale format '%x'),\n it is reset to the previous valid date.\n\n The widget style is set to 'DateEntry'. A custom style inheritting from 'DateEntry'\n can be created by naming it '