I am trying to make my current code work with a text entry box. I have
I am trying to make my current code work with a text entry box. I have
# Welcome Message
print('Welcome To Your Monthly Gross Income Calculator')
# Variables
money_per_hour = int(input('Enter How Much Per Hour:'))
hours_week_1 = int(input('Enter Hours for Week 1:'))
hours_week_2 = int(input('Enter Hours for Week 2:'))
hours_week_3 = int(input('Enter Hours for Week 3:'))
hours_week_4 = int(input('Enter Hours for Week 4:'))
# Calculator
gross_pay = int(hours_week_1*money_per_hour+hours_week_2*money_per_hour+hours_week_3*money_per_hour+hours_week_4*money_per_hour)
net_pay = int(gross_pay)
# Print Final Numbers
print('Your Gross Pay For This Month Is:', gross_pay, 'Dollars')
print('Your Net Pay For This Month Is:', net_pay, 'Dollars')
i want to make it so that I can open it in it's own window and have text boxes for the inputs. I am very beginner, and not experienced.
Any help is appreciated
I had this post earlier, but had to go and it closed, so im redoing it.