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
10
votes
3 answers

How to install python application with tkcalendar module by pyinstaller?

I'm trying to install python application on Windows with pyinstaller where I'm using tkcalendar. Application is working but the tkcalendar.Calendar isn't. When I'm running application without installation everything works but if I do this, Calendar…
Bodzio322
  • 125
  • 1
  • 1
  • 6
5
votes
1 answer

How to get the selected date for DateEntry in tkcalendar (Python)?

I have a tkcalendar and it's pre-defined widget for Calendar, DateEntry and am trying to get the User's selected date for DateEntry. Whereas there is provision to extract the selected date for the Calendar widget using "selection_get()" but nothing…
Garima Tiwari
  • 1,490
  • 6
  • 28
  • 46
4
votes
2 answers

ModuleNotFoundError: No module named 'tkcalendar'

I have installed tkcalendar using pip3 install tkcalendar and it says that it has installed successfully. However, when i run the line from tkcalendar import * in my program, it gives me ModuleNotFoundError: No module named 'tkcalendar'. Can…
user12891240
  • 47
  • 2
  • 5
3
votes
2 answers

Change date format in Tkinter date picker - python

As title say, I would like to change the date format in Tkinter from m/d/y to dd/mm/yyyy I have the following code but did not work. still the format of the date is 2/16/2022 root = tk.Tk() root.geometry("700x450") #Weekly From cal1 =…
Greencolor
  • 501
  • 1
  • 5
  • 16
3
votes
2 answers

Is it possible to embed custom text in python tkcalendar's date

I am creating a shift table by tkcalendar. I would like to make the selected dates show their own timetable, as illustrated in the picture. Is it possible to achieve this by any methods provided by tkcalendar? Or the only way I can do this is…
cindy50633
  • 144
  • 2
  • 11
3
votes
2 answers

Is there a way to change tkcalendar's color?

I'm trying to make tkcalendar blend in with my window. import tkinter from tkcalendar import Calendar window = tkinter.Tk() window.configure(background = "black") cal = Calendar(window, background = "black" , disabledbackground = "black" ,…
blueblast
  • 87
  • 2
  • 10
3
votes
1 answer

How can I generate the exe application from python file

I'm trying to get the .exe file from this script using pyinstaller I used this command pyinstaller -w -F test.py while I'm in the test directory the file test.py contains from tkinter import * from tkcalendar import DateEntry root = Tk() date =…
Ali
  • 687
  • 8
  • 27
3
votes
1 answer

Python Tkinter ttk calendar

I am trying to create a drop down calendar for a date entry. Below is a portion of my code: The drop down portion of it dosen't work and I can't seem to find the syntax for DateEntry() of ttk calendar anywhere to include the calendar widget…
user9093127
  • 181
  • 2
  • 3
  • 12
2
votes
1 answer

How to create a clicked function in tkinter calendar?

I am trying to create a clicked function to my calendar. class MainWindow(): def __init__(self, app) : #---------------------------------Initialisation de la page principale------------------------------------ …
2
votes
2 answers

How do I save a value in an external variable?

The doubt was the following, I want to select a date using the tkcalendar library, it is selected correctly, but I cannot use the variable outside the function. def dateentry_view(): def print_sel(): date = cal.get_date() …
Darío
  • 23
  • 5
2
votes
0 answers

Error when run exe "ModuleNotFoundError: No module named 'babel.numbers"

When I try to run my .exe file I get this error ModuleNotFoundError: No module named 'babel.numbers' I add this line "from babel.numbers import *" into calendar_.py file but nothing changed. How to fix this error?
Andonov85
  • 77
  • 8
2
votes
2 answers

Tkcalendar clear DateEntry after moving focus

I have a DateEntry widget and a button to clear the DateEntry contents. I want the DateEntry to be blank unless the user selects a date. My problem is if I select the DateEntry widget and give it focus, then using the clear button doesn't work the…
Rory LM
  • 160
  • 2
  • 15
2
votes
1 answer

Is there a way to detect a FocusOut event on 2 widgets in python

What I want is to be free to choose the date as long as I am on the dateEntry widget (even if i click on down arrow this one won't be detroyed) and destroy this last (dateEntry) if I click some where else. The problem is tkcalender is made by…
Ali
  • 687
  • 8
  • 27
2
votes
2 answers

Expanding dateentry display from m/d/yy to mm/dd/yyyy?

Using dateentry from the tkcalendar python module, every time I select a date on the widget it shortens it to the m/d/yy format. I'd like it to expand to mm/dd/yyyy if possible, or at least for the year. When using the set_date method, it will…
John A
  • 23
  • 1
  • 1
  • 3
2
votes
2 answers

How can we restrict future date selection from tkCalender Date Entry picker in Python?

I am creating a graphic user application in Python using tkinter. For date picker I am using Date Entry from tkCalendar for this purpose. The requirement is to restrict user from selecting future dates. How can I achieve that in this case? Python…
Saurav Kumar
  • 61
  • 1
  • 4
1
2 3 4 5 6 7 8