Questions tagged [tkcalendar]

tkcalendar is a python module that provides the Calendar and DateEntry widgets for Tkinter. The DateEntry widget is similar to a Combobox. Events can be displayed in the Calendar with custom colors and a tooltip displays the event list for a given day. tkcalendar is compatible with both Python 2 and Python 3. It supports many locale settings (e.g. ‘fr_FR’, ‘en_US’, ..) and the colors are customizable.

tkcalendar is a module that provides the Calendar and DateEntry widgets for . The DateEntry widget is similar to a Combobox. Events can be displayed in the Calendar with custom colors and a tooltip displays the event list for a given day. tkcalendar is compatible with both Python 2 and Python 3. It supports many locale settings (e.g. ‘fr_FR’, ‘en_US’, ..) and the colors are customizable.

Resources

110 questions
0
votes
1 answer

I'm receiving an attribute error when trying to disable a cell in tkCalendar using coordinates

My code to disable the date cells on tkCalendar is as follows: from tkcalendar import Calendar from datetime import datetime import tkinter as tk from tkinter import * def dates_play(self,date_entry): #Creating the calendar display …
amsi_25
  • 23
  • 4
0
votes
1 answer

DateEntry class in tkcalendar bug in runtime

During runtime, the DateEntry class exhibits some odd behavior. When clicking the dropdown, I'm presented with the following bug - calendar details not displaying. If I double click the dropdown, the bug resolves, but the formatting is very strange…
Ty_Pot
  • 37
  • 4
0
votes
0 answers

How do I get the date that the user selects on tkcalendar. DateEntry?

I want to get the date from the user, that they select, so that I may put it into my sql database. I have tried many things, such as getdate() and selection_get() but I can't seem to get my value 'dobentered' to equal the value of the date…
dexta
  • 17
  • 4
0
votes
0 answers

Tkcalendar is opening in the wrong window when i try to get it to run

When I am trying to run the tkkcalendar so that I can take a date entry, later for an sql database, the tkcalendar seems to be running on the original window instead of the new one. I'm new to object oriented, can someone help? I am trying to simply…
dexta
  • 17
  • 4
0
votes
0 answers

tkcalendar is installed correctly, but it gives an error when executing the command from tkcalendar import Calendar. What is the problem?

I installed tkcalendar-1.6.1.tar.gz on Python 3.3.2 (32-bit) via command prompt environment with python setup .py install command. But when executing the command from tkcalendar import calendar, we encounter the following error. I also installed…
0
votes
0 answers

Tkinter DateEntry Calendar Mindate not allowing December month of the same year

I am setting the minimum date for selection in calendar to 1st Jan 2022 but I am unable to select any day for the month Dec 2022. All other months are working fine. I observed that if the day is set to any two digit day then there is no issue. (…
0
votes
1 answer

Making a button on tkcalendar to colour background of selected days

I am trying to obtain the following (used an example from the tkcalendar page). But I want it with a button, so that when I press it, the date becomes coloured like that. I can't seem to make calevent_create and tag_config work though. Can anybody…
0
votes
0 answers

Python | Tkinter | TkCalendar : how to customize 'DateEntry Date Picker' object? like increasing Width, and more?

I'm developing a simple Python stand-alone application, that uses a GUI datePicker, and I went for using 'from tkcalendar import DateEntry'. | using python 2.7 (for older windows PC) while using 'DateEntry - Date Picker', I not able to find a few…
0
votes
1 answer

How to get specific Information from a dictionary

I'm trying to make a calendar with Python Tkinter where I can make entries and save those with the date I choose. To save them I use a dictionary in that I could make more than 1 entry. (If there is another way please tell me)How can I now define…
0
votes
1 answer

How to save tkcalendar in textfile

I hope someone can help me and I'll really appreciate it. I'm really having a hard time with saving this Calendar input in the Textfile after showing the date in the Treeview. By the way, here's my import: from tkcalendar import DateEntry This is…
0
votes
1 answer

How do I store a variable in a function so I can access it from a different file

I am trying to make a program that allows you to select a day, and then store a value for the day with a separate file. However, I can't find a way to store the selected day in a variable that I can use. from tkinter import * from tkcalendar import…
0
votes
1 answer

Python ValueError("time data %r does not match format %r" % even thought it is the correct format

I'm creating a database with GUI.To collect the date, I wanted to use tkcalendar. Yesterday, It worked perfectly fine but today, I changed some parts of the code without touching this part of the code. from datetime import datetime from tkinter…
dioscuri
  • 1
  • 1
0
votes
1 answer

How to delete Label before printing a new one

My python code has a ui calendar and button but i don't know how to get the label to print and after destroying the label before it from tkinter import* from tkcalendar import* root=Tk() root.title("Code project") def selectDate(): myDate…
L bozo
  • 3
  • 1
0
votes
1 answer

No Text showing in dateentry field

I have put multiple dateentry widgets into a single frame, and after doing so, no date appears in the entry field. I have tried to use the .set method using the textvariable that I have set, but that does not work also. Any help is greatly…
Programmer12
  • 89
  • 1
  • 8
0
votes
0 answers

failed to excute due to unhandled exception no module named babel.numbers

i built a python app with tkinter and i want to make it into an exe so i can use it as a normal app. the problem is pyinstaller is always throwing weird errors (i don't know if this has to do with windows 11 because in windows 10 i wasn't getting…