tkcalendar

Import "tkcalendar" could not be resolved

Import "tkcalendar" could not be resolved Question: I am building a GUI on TKinter and wanted to include a calendar to pick dates. I had imported tkcalendar and followed he steps mentioned in its documentation to install tkcalendar. But, it shows a problem while running the code in VSCode while importing. from tkcalendar import Calendar …

Total answers: 1

How to delete Label before printing a new one

How to delete Label before printing a new one Question: 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 =my_Cal.get_date() selectedDate = Label(text=myDate) selectedDate.pack() my_Cal= …

Total answers: 1

Change date format in Tkinter date picker – python

Change date format in Tkinter date picker – python Question: 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("700×450") #Weekly From cal1 = DateEntry(root, width=8, year=year, …

Total answers: 2

How can I generate the exe application from python file

How can I generate the exe application from python file Question: 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 = DateEntry(root, …

Total answers: 1