Question: After changing checkboxes to radiobuttons and adding dialogbox flags in my python tkinter GUI event handling calendar program my ADD _ EVENT function stopped working

After changing checkboxes to radiobuttons and adding dialogbox flags in my python tkinter GUI event handling calendar program my ADD_EVENT function stopped working properly, Please help to fix this. It only gives the error message: "Invalid input, Please check your entries. Even though all entries are always accurate. Thanks for your help. class MainWindow(tk.Tk):
def __init__(self):
super().__init__()
self.config(background="azure3")
self.title("Calendar")
self.geometry("790x590")
self.first_widgets()
self.events ={}
self.event_management_window = None
def first_widgets(self):
self.calendar = Calendar(self, selectmode="day",
date_pattern="mm-dd-yyy",
font=("Arial Black", 16, "bold"),
background="dodgerblue1",
foreground="Black",
headersbackground="firebrick",
headersforeground="Black",
selectforeground="darkslategray4",
selectbackground="yellow",
weekendforeground="Black",
weekendbackground="dodgerblue1",
othermonthforeground="darkslategray4",
othermonthbackground="gainsboro",
disabledforeground="Black",
disabledbackground="dimgray")
self.calendar.pack(pady=20)
self.manage_events_button = tk.Button(self, text='Manage Events', activebackground="yellow", background="dodgerblue1", font=("Arial Black", 10, "bold"), width=12, height=2, command=self.open_event_management)
self.manage_events_button.pack()
# Create the exit program button
self.quit_button = tk.Button(self, text="Exit Program", activebackground="yellow", background="firebrick", font=("Arial Black", 10, "bold"), width=12, height=2, command=self.quit)
self.quit_button.pack(side="bottom", anchor="e", padx=10, pady=10)
def open_event_management(self):
if self.event_management_window is None or not self.event_management_window.winfo_exists():
self.event_management_window = EventManagementWindow(self)
if __name__=="__main__":
app = MainWindow()
app.mainloop(), import tkinter as tk
from tkinter import ttk
from tkcalendar import Calendar
from PIL import ImageTk,Image
from tkinter import simpledialog
from tkinter import Label, Toplevel
from tkcalendar import DateEntry
from tkinter import StringVar, messagebox, PhotoImage
from datetime import datetime
import os
import tempfile
class EventManagementWindow(tk.Toplevel):
def __init__(self, main_window):
super().__init__(main_window)
self.config(background="dodgerblue1")
self.title('Event Management')
self.geometry('900x800')
self.main_window = main_window
self.second_widgets()
self.focus_set()
self.is_dialog_open = False
After changing checkboxes to radiobuttons and

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!