tkcalendar

how to print previous 30 days from a date in python and the same in Tkinter

人走茶凉 提交于 2021-02-05 12:24:05
问题 I am using Tkinter to build a Corona Travel History Questionnaire. The front end has options to select a particular date - " D-Day Cronoa Confirmed". Once the D-day is confirmed, the program is supposed to give fields for entering data on travel history. I am using tkcalendar module in Python. Problem: How to print the previous 30 days from a given date in python? Question: Can we do anything in tkcalendar to print the last 30 days from a selected date in the window itself? 回答1: Using the

how to print previous 30 days from a date in python and the same in Tkinter

♀尐吖头ヾ 提交于 2021-02-05 12:22:26
问题 I am using Tkinter to build a Corona Travel History Questionnaire. The front end has options to select a particular date - " D-Day Cronoa Confirmed". Once the D-day is confirmed, the program is supposed to give fields for entering data on travel history. I am using tkcalendar module in Python. Problem: How to print the previous 30 days from a given date in python? Question: Can we do anything in tkcalendar to print the last 30 days from a selected date in the window itself? 回答1: Using the

Is there a way to change tkcalendar's color?

ぐ巨炮叔叔 提交于 2021-01-27 12:00:59
问题 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" , borderbackground = "black" , headersbackground = "black" , normalbackground = "black" ) cal.config(background = "black") cal.pack() window.mainloop() I've read through the tkcalendar documentation and tried changing all the style elements by calling the

Is there a way to add calevents to DateEntry in tkcalendar?

时光总嘲笑我的痴心妄想 提交于 2020-08-11 02:32:49
问题 I am trying to find a way to highlight specific dates on tkcalendar's DateEntry class. This is running on Python 3. It works successfully with tkcalendar's Calendar class, but does not seem to apply to DateEntry class. import tkinter as tk from tkinter import ttk from tkcalendar import Calendar, DateEntry window = tk.Tk() cal = DateEntry(window) date = cal.datetime.today() + cal.timedelta(days=2) cal.calevent_create(date, 'Hello World', 'message') cal.tag_config('message', background='red',

Is there a way to add calevents to DateEntry in tkcalendar?

泪湿孤枕 提交于 2020-08-11 02:31:53
问题 I am trying to find a way to highlight specific dates on tkcalendar's DateEntry class. This is running on Python 3. It works successfully with tkcalendar's Calendar class, but does not seem to apply to DateEntry class. import tkinter as tk from tkinter import ttk from tkcalendar import Calendar, DateEntry window = tk.Tk() cal = DateEntry(window) date = cal.datetime.today() + cal.timedelta(days=2) cal.calevent_create(date, 'Hello World', 'message') cal.tag_config('message', background='red',

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

孤街浪徒 提交于 2019-12-22 14:00:33
问题 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 for DateEntry that I could find. I have tried get_date(),get(),_date(), cget(), ._selection() amongst many others but they don't seem to return/print the user-selected date. Please help, kindly let me know if any added information is needed Code

How can I generate the exe application from python file [duplicate]

爱⌒轻易说出口 提交于 2019-12-13 08:03:17
问题 This question already has answers here : How to install python application with tkcalendar module by pyinstaller? (2 answers) Closed 8 days ago . 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, year=2001, month=11, day=11, width=17,) date.pack() root.mainloop() The .exe file that I

How to install python application with tkcalendar module by pyinstaller?

偶尔善良 提交于 2019-12-11 15:13:09
问题 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 widget does not appear. I think that pyinstaller sees this module but he has problems with modules that tkcalendar is using. I tried to run pyinstaller with --path=/.../python/Lib/site-packages but this didnt worked. Also copying module files to