Answered step by step
Verified Expert Solution
Question
1 Approved Answer
pyhton tkinter POINTS] Write a separate python program to accomplish this question. You are required to use Tkinter to accomplish the following tasks: A. [2
pyhton tkinter
POINTS] Write a separate python program to accomplish this question. You are required to use Tkinter to accomplish the following tasks: A. [2 POINTS] Create and display a Tkinter window of size " 250x 100", then set the window Title to "Odd/Even" . [2 POINTS] Add a Label widget with text="Number:", place it at row =0 and column =0. Set padding from all dimensions to 15 . c. [1 POINT] Add an Entry widget with width =25, placed at row =0 and column =1. D. [2 POINTs] Add a Button widget with text="Check" and width =15, placed at row =1 and column =1, aligned to the RIGHT side. E. [3 POINTS] Make a function called odd_even(number) that is executed when you press the button. The function accepts an integer argument called 'number'. The function checks if the number is even, it displays an Information Dialog entitled "Information" with "Even" as a message. Otherwise, it displays a Warning Dialog entitled "Warning" with "Odd" as a message. Note: The window and dialogs should look like the Figure below. Submission: You should submit your code in the following text box. Then, upload the word document. Any other format will be graded as zero 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