Question: Hey, Im stuck on these question i need some help with it, thanks in advance QUESTION 4 Consider a Python GUI program that produces a

Hey, Im stuck on these question i need some help with it, thanks in advance

Hey, Im stuck on these question i need some help with it,thanks in advance QUESTION 4 Consider a Python GUI program that produces

a window with the following widgets: a text box to display thevalue of one element of a given list (e.g., a list of

QUESTION 4 Consider a Python GUI program that produces a window with the following widgets: a text box to display the value of one element of a given list (e.g., a list of the five vowels); a button to retrieve the previous value in that list (if there is one). This button is disabled if there is no previous value in the list a button to retrieve the next value in that list (if there is one). This button is disabled if there is no next value in the list. a label to display the number ofthe item being displayed and the total number of items (e.g., "1/5") The initial output is as shown below Vowels- prew >> nedt 1/5 Hitting the " next" button once (from the initial state above) produces the following output: Ti Vowels- prev >next 2/5 Hitting the " next" button three more times produces the following output: 17% Vowels- > ned 5/5 Most of the back-end of the program has already been written. Amongst other things, the following variables have been created: windowTk() counter0 input-list= # the index of the list item being displayed 'e', ['a', 'i', 'o', 'u'] # list of vowels YOUR TASK is to complete the check_buttons function which enables and disables the "** prev" and" next" buttons depending on the current list element displayed. def check buttons ) buttonPrevl 'state'] buttonPrevI'state - buttonNext['state' - else: buttonNext['state' - NB: counter had the value 0 when the screenshot of the initial output (above) was created. QUESTION 4 Consider a Python GUI program that produces a window with the following widgets: a text box to display the value of one element of a given list (e.g., a list of the five vowels); a button to retrieve the previous value in that list (if there is one). This button is disabled if there is no previous value in the list a button to retrieve the next value in that list (if there is one). This button is disabled if there is no next value in the list. a label to display the number ofthe item being displayed and the total number of items (e.g., "1/5") The initial output is as shown below Vowels- prew >> nedt 1/5 Hitting the " next" button once (from the initial state above) produces the following output: Ti Vowels- prev >next 2/5 Hitting the " next" button three more times produces the following output: 17% Vowels- > ned 5/5 Most of the back-end of the program has already been written. Amongst other things, the following variables have been created: windowTk() counter0 input-list= # the index of the list item being displayed 'e', ['a', 'i', 'o', 'u'] # list of vowels YOUR TASK is to complete the check_buttons function which enables and disables the "** prev" and" next" buttons depending on the current list element displayed. def check buttons ) buttonPrevl 'state'] buttonPrevI'state - buttonNext['state' - else: buttonNext['state' - NB: counter had the value 0 when the screenshot of the initial output (above) was created

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 Databases Questions!