Using Python calculate pay, create a form using tkinteron which you enter hourly wage and the number of hours worked, andgross pay for the week is displayed on the form. The labels beforethe entry boxes and result box should be clear to theuser.
Create a button to activate the calculation and displaythe results.
Use a title of the window to make clear the purpose ofthe program.
Solution
PythonProgram:
from tkinter import *
# Considering labels that are to be placed on Form
labels = [‘Enter hourly wage: ‘, ‘Enter hours worked: ‘]
def constructForm(root, labels):
“””
Function that constructs form
“””
# Empty list
elements
OR
OR