Answered step by step
Verified Expert Solution
Question
1 Approved Answer
I need a python GUI script. Hints: you can use the function monthrange from calendar module to get the start weekday and total number of
I need a python GUI script.
Hints: you can use the function monthrange from calendar module to get the start weekday and total number of days for a particular month.
This dialog gives you an entry field to enter an appointment. When you click button OK, the dialog window will disappear. However, when you click the same day button in the main calendar window again, the dialog window should reappear together with the appointment information.
You may use the askstring function from module tkinter.simpledialog for the dialog window. It takes the window title and label as input and returns whatever the user typed. For example, the last dialog window was created with the function call
askstring('example', 'Enter text')
When the user clicks OK, the string typed in the entry box is returned by this function call. The function can also take an optional argument initial value that takes a string and puts it in the entry field:
askstring('example', ' Enter text', initialvalue='appt with John')
Thanks for your time!!
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started