jakehennes / the-a-team

0 stars 0 forks source link

Near Final TKinter Code #4

Open baumbachb opened 3 years ago

baumbachb commented 3 years ago

'''

Barrington Advisory Solutions BIS Development Team Project

'''

import tkinter

service = { #This is the dictionary that holds all of the services and their associated prices 'Mergers and Acquisitions':3000, 'Business Valuations':2000, 'Financial Analysis & Operational Ideas':5000, 'Strategic Planning Services':3500, 'Specialized Strategic Consultion Services':4000, 'Litigation Support':6000, '': 0 }

services = [ #This is the list that holds all of the services (Used for the GUI output) '', 'Mergers and Acquisitions', 'Business Valuations', 'Financial Analysis & Operational Ideas', 'Strategic Planning Services', 'Specialized Strategic Consultion Services', 'Litigation Support' ]

window = tkinter.Tk() #Creates the window (GUI)

class QuotaCalc:

## A class that asks for data about a client and then calculates
## both the time required for the service and the total estimate cost

def __init__(self, main, cust_name = 'none', co_size = 0, option1=None, option2=None, option3=None):      ##This initializes the class with all of the variables that we will use

    self.co_name = tkinter.Label(main, text = 'Customer/Company Name', font=('Arial Narrow', 20)).grid(row=20, column=1)       #This displays text, the font is the font, and this tells the program what to display
    self.co_name_input = tkinter.Entry(main).grid(row=20, column=3)      #Allows user to input information       #by putting both on row 0, it alligns the text

can add in blank lables to space out the boxes (reduce the font to something small)

    clicked = tkinter.StringVar()           #initalizing "clicked" as a string variable
    clicked2 = tkinter.StringVar()
    clicked3 = tkinter.StringVar()

    clicked.set(services[0])                #Text to be displayed on the menu dropdown
    clicked2.set(services[0])
    clicked3.set(services[0])

    timeRequired = 0

    self.co_size = tkinter.Label(main, text = 'Company Size', font=('Arial Narrow', 20)).grid(row=40, column=1)
    self.comp_size_input = tkinter.Entry(main).grid(row=40, column=3)

    self.option_1 = tkinter.Label(main, text = 'Service 1 Needed', font=('Arial Narrow', 20)).grid(row=60, column=1)    
    self.drop = tkinter.OptionMenu( main , clicked , *service ).grid(row = 60, column = 3)                              #refers to the set number of services for dropdown

    self.option_2 = tkinter.Label(main, text = 'Service 2 Needed', font=('Arial Narrow', 20)).grid(row=80, column=1)
    self.drop2 = tkinter.OptionMenu( main , clicked2 , *service ).grid(row = 80, column = 3)

    self.option_3 = tkinter.Label(main, text = 'Service 3 Needed', font=('Arial Narrow', 20)).grid(row=100, column=1)
    self.drop3 = tkinter.OptionMenu( main , clicked3 , *service ).grid(row = 100, column = 3)

    activated = True

    self.bt = tkinter.Button(main, text='Calculate', command = self.myClick(), fg = "purple", bg = "light blue").grid(row=120, column=2)     ##fg is foreground (color), bg is background (color)
    #Need to convert to when the button presses, it runs other functions of the class

    time_req = tkinter.Label(window, text = 'Time Required', font=('Arial Narrow', 20)).grid(row=140, column=1)

    total_cost = tkinter.Label(window, text = 'Price Quote', font=('Arial Narrow', 20)).grid(row=160, column=1)

make a boolean to see if the button has been clicked and set it to false, when the boolean becomes true run the functions that do the math

def myClick(self):

    myLabel = tkinter.Label(window, text = self.getTime)
    myLabel.grid(row=175, column=3)
    myLabel2 = tkinter.Label(window, text = self.calcCost)
    myLabel2.grid(row=200, column=3)

def getTime(self):

    if co_size == 0:                        #This determines how much time will be necessary based on the size of the company
        self.timeRequired = 0
    elif co_size <= 20:
        self.timeRequired = 1
    elif co_size <= 40:
        self.timeRequired = 2
    elif co_size <= 60:
        self.timeRequired = 3
    elif co_size <= 80:
        self.timeRequired = 4
    elif co_size <= 100:
        self.timeRequired = 5
    elif co_size <= 150:
        self.timeRequired = 6
    else:
        self.timeRequired = 8

    return self.timeRequired

def calcCost(self):                                 #This calculates the total cost of the services
    cost = self.timeRequired * service[self.option1]
    if self.option2:
        cost += self.timeRequired * service[self.option2]
    if self.option3:
        cost += self.timeRequired * service[self.option3]

    return cost

''' if name == "main":

#calc = QuotaCalc(name, size, option1, option2, option3)
#timeRequired = calc.getTime()
#time_required = tkinter.Label(window, text = timeRequired, font=('Arial Narrow', 20)).grid(row=175, column=85)       #print("Time rquired: ", str(timeRequired) + " month(s)")

#totalCost = calc.calcCost()
#totalCost = format(totalCost, '.2f')
#total_costs = tkinter.Label(window, text = 'Price Quote', font=('Arial Narrow', 20)).grid(row=200, column=85)    #print("Price quote: $", totalCost)

''' logo = tkinter.PhotoImage(file=r"C:\Users\brian\OneDrive\Documents\TCU\Junior Year\Second Semester\Business Information System Development INSC 30833\Bar Ad Pic.PNG")

YOU MUST USE THE FILE PATH TO THE LOGO ON YOUR OWN COMPUTER

THIS SHOWS MY PERSONAL FILE PATH

w1 = tkinter.Label(window, image=logo).grid(row=0, column = 2)

window.title('Barrington Advisory Quota Calculator') #Window Title window.geometry('500x325') #Sets the size of the window

window.configure(bg='light blue') <- If we want to change the color of the background

e = QuotaCalc(window)

window.mainloop() #Tells the program to continue running until the GUI is closed

jakehennes commented 3 years ago

'''

Barrington Advisory Solutions BIS Development Team Project

'''

import tkinter

service = { #This is the dictionary that holds all of the services and their associated prices 'Mergers and Acquisitions':3000, 'Business Valuations':2000, 'Financial Analysis & Operational Ideas':5000, 'Strategic Planning Services':3500, 'Specialized Strategic Consultion Services':4000, 'Litigation Support':6000, '': 0 }

services = [ #This is the list that holds all of the services (Used for the GUI output) '', 'Mergers and Acquisitions', 'Business Valuations', 'Financial Analysis & Operational Ideas', 'Strategic Planning Services', 'Specialized Strategic Consultion Services', 'Litigation Support' ]

window = tkinter.Tk() #Creates the window (GUI)

clicked = tkinter.StringVar() #initalizing "clicked" as a string variable clicked2 = tkinter.StringVar() clicked3 = tkinter.StringVar()

class QuotaCalc:

## A class that asks for data about a client and then calculates
## both the time required for the service and the total estimate cost

def myClick(self):

    myLabel = tkinter.Label(window, text = self.getTime)
    myLabel.grid(row=140, column=3)
    myLabel2 = tkinter.Label(window, text = self.calcCost)
    myLabel2.grid(row=160, column=3)

def getTime(self):

    if self.comp_size_input == 0:                        #This determines how much time will be necessary based on the size of the company
        self.timeRequired = 0
    elif self.comp_size_input <= 20:
        self.timeRequired = 1
    elif self.comp_size_input <= 40:
        self.timeRequired = 2
    elif self.comp_size_input <= 60:
        self.timeRequired = 3
    elif self.comp_size_input <= 80:
        self.timeRequired = 4
    elif self.comp_size_input <= 100:
        self.timeRequired = 5
    elif self.comp_size_input <= 150:
        self.timeRequired = 6
    else:
        self.timeRequired = 8

    return self.timeRequired

def calcCost(self):                                 #This calculates the total cost of the services
    cost = self.timeRequired * service[self.drop]
    if self.option2:
        cost += self.timeRequired * service[self.drop2]
    if self.option3:
        cost += self.timeRequired * service[self.drop3]

    return cost

def __init__(self, main, cust_name = 'none', co_size = 0, option1=None, option2=None, option3=None):      ##This initializes the class with all of the variables that we will use

    self.co_name = tkinter.Label(main, text = 'Customer/Company Name', font=('Arial Narrow', 20)).grid(row=20, column=1)       #This displays text, the font is the font, and this tells the program what to display
    self.co_name_input = tkinter.Entry(main).grid(row=20, column=3)      #Allows user to input information       #by putting both on row 0, it alligns the text

can add in blank lables to space out the boxes (reduce the font to something small)

    clicked = tkinter.StringVar()           #initalizing "clicked" as a string variable
    clicked2 = tkinter.StringVar()
    clicked3 = tkinter.StringVar()

    clicked.set(services[0])                #Text to be displayed on the menu dropdown
    clicked2.set(services[0])
    clicked3.set(services[0])

    timeRequired = 0

    self.co_size = tkinter.Label(main, text = 'Company Size', font=('Arial Narrow', 20)).grid(row=40, column=1)
    self.comp_size_input = tkinter.Entry(main).grid(row=40, column=3)

    self.option_1 = tkinter.Label(main, text = 'Service 1 Needed', font=('Arial Narrow', 20)).grid(row=60, column=1)    
    self.drop = tkinter.OptionMenu( main , clicked , *service ).grid(row = 60, column = 3)                              #refers to the set number of services for dropdown

    self.option_2 = tkinter.Label(main, text = 'Service 2 Needed', font=('Arial Narrow', 20)).grid(row=80, column=1)
    self.drop2 = tkinter.OptionMenu( main , clicked2 , *service ).grid(row = 80, column = 3)

    self.option_3 = tkinter.Label(main, text = 'Service 3 Needed', font=('Arial Narrow', 20)).grid(row=100, column=1)
    self.drop3 = tkinter.OptionMenu(main , clicked3 , *service ).grid(row = 100, column = 3)

    activated = True

    self.bt = tkinter.Button(main, text='Calculate', command = self.myClick(), fg = "purple", bg = "light blue").grid(row=120, column=2)     ##fg is foreground (color), bg is background (color)
    #Need to convert to when the button presses, it runs other functions of the class

    time_req = tkinter.Label(window, text = 'Time Required', font=('Arial Narrow', 20)).grid(row=140, column=1)
    output = tkinter.Text(window, width = 20, height = 1, bg = "light grey")
    output.grid(row = 140, column = 3)

    total_cost = tkinter.Label(window, text = 'Price Quote', font=('Arial Narrow', 20)).grid(row=160, column=1)
    output2 = tkinter.Text(window, width = 20, height = 1, bg = "light grey")
    output2.grid(row = 160, column = 3)

make a boolean to see if the button has been clicked and set it to false, when the boolean becomes true run the functions that do the math

''' if name == "main":

#calc = QuotaCalc(name, size, option1, option2, option3)
#timeRequired = calc.getTime()
#time_required = tkinter.Label(window, text = timeRequired, font=('Arial Narrow', 20)).grid(row=175, column=85)       #print("Time rquired: ", str(timeRequired) + " month(s)")

#totalCost = calc.calcCost()
#totalCost = format(totalCost, '.2f')
#total_costs = tkinter.Label(window, text = 'Price Quote', font=('Arial Narrow', 20)).grid(row=200, column=85)    #print("Price quote: $", totalCost)

'''

window.title('Barrington Advisory Quota Calculator') #Window Title window.geometry('500x325') #Sets the size of the window

window.configure(bg='light blue') <- If we want to change the color of the background

e = QuotaCalc(window)

window.mainloop() #Tells the program to continue running until the GUI is closed

This needs the photo code to be added back into it from above

baumbachb commented 3 years ago

'''

Barrington Advisory Solutions BIS Development Team Project

'''

import tkinter

service = { #This is the dictionary that holds all of the services and their associated prices 'Mergers and Acquisitions':3000, 'Business Valuations':2000, 'Financial Analysis & Operational Ideas':5000, 'Strategic Planning Services':3500, 'Specialized Strategic Consultion Services':4000, 'Litigation Support':6000, '': 0 }

services = [ #This is the list that holds all of the services (Used for the GUI output) '', 'Mergers and Acquisitions', 'Business Valuations', 'Financial Analysis & Operational Ideas', 'Strategic Planning Services', 'Specialized Strategic Consultion Services', 'Litigation Support' ]

window = tkinter.Tk() #Creates the window (GUI)

class QuotaCalc:

## A class that asks for data about a client and then calculates
## both the time required for the service and the total estimate cost

def __init__(self, main, cust_name = 'none', co_size = 0, option1=None, option2=None, option3=None):      ##This initializes the class with all of the variables that we will use

    self.co_name = tkinter.Label(main, text = 'Customer/Company Name', font=('Arial Narrow', 20)).grid(row=20, column=1)       #This displays text, the font is the font, and this tells the program what to display
    self.co_name_input = tkinter.Entry(main).grid(row=20, column=3)      #Allows user to input information       #by putting both on row 0, it alligns the text

can add in blank lables to space out the boxes (reduce the font to something small)

    clicked = tkinter.StringVar()           #initalizing "clicked" as a string variable
    clicked2 = tkinter.StringVar()
    clicked3 = tkinter.StringVar()

    clicked.set(services[0])                #Text to be displayed on the menu dropdown
    clicked2.set(services[0])
    clicked3.set(services[0])

    timeRequired = 0

    self.co_size = tkinter.Label(main, text = 'Company Size', font=('Arial Narrow', 20)).grid(row=40, column=1)
    self.comp_size_input = tkinter.Entry(main).grid(row=40, column=3)

    self.option_1 = tkinter.Label(main, text = 'Service 1 Needed', font=('Arial Narrow', 20)).grid(row=60, column=1)    
    self.drop = tkinter.OptionMenu( main , clicked , *service ).grid(row = 60, column = 3)                              #refers to the set number of services for dropdown

    self.option_2 = tkinter.Label(main, text = 'Service 2 Needed', font=('Arial Narrow', 20)).grid(row=80, column=1)
    self.drop2 = tkinter.OptionMenu( main , clicked2 , *service ).grid(row = 80, column = 3)

    self.option_3 = tkinter.Label(main, text = 'Service 3 Needed', font=('Arial Narrow', 20)).grid(row=100, column=1)
    self.drop3 = tkinter.OptionMenu( main , clicked3 , *service ).grid(row = 100, column = 3)

    activated = True

    self.bt = tkinter.Button(main, text='Calculate', command = self.myClick, fg = "purple", bg = "light blue").grid(row=120, column=2)     ##fg is foreground (color), bg is background (color)
    #Need to convert to when the button presses, it runs other functions of the class

    time_req = tkinter.Label(window, text = 'Time Required', font=('Arial Narrow', 20)).grid(row=140, column=1)

    total_cost = tkinter.Label(window, text = 'Price Quote', font=('Arial Narrow', 20)).grid(row=160, column=1)

make a boolean to see if the button has been clicked and set it to false, when the boolean becomes true run the functions that do the math

def getTime(self):

    if comp_size_input == 0:                        #This determines how much time will be necessary based on the size of the company
        self.timeRequired = 0
    elif comp_size_input <= 20:
        self.timeRequired = 1
    elif comp_size_input <= 40:
        self.timeRequired = 2
    elif comp_size_input <= 60:
        self.timeRequired = 3
    elif comp_size_input <= 80:
        self.timeRequired = 4
    elif comp_size_input <= 100:
        self.timeRequired = 5
    elif comp_size_input <= 150:
        self.timeRequired = 6
    else:
        self.timeRequired = 8

    return self.timeRequired

def calcCost(self):                                 #This calculates the total cost of the services
    cost = self.timeRequired * service[self.option1]
    if self.option2:
        cost += self.timeRequired * service[self.option2]
    if self.option3:
        cost += self.timeRequired * service[self.option3]

    return cost

def myClick(self):

    timeRequired = self.getTime
    cost = self.calcCost

    myLabel = tkinter.Label(window,text = cost)
    #myLabel.pack(pady = 10)
    myLabel.grid(row=140, column=3)
    myLabel2 = tkinter.Label(window, text = timeRequired)
    #myLabel2.pack(pady = 10)
    myLabel2.grid(row=160, column=3)

''' if name == "main":

#calc = QuotaCalc(name, size, option1, option2, option3)
#timeRequired = calc.getTime()
#time_required = tkinter.Label(window, text = timeRequired, font=('Arial Narrow', 20)).grid(row=175, column=85)       #print("Time rquired: ", str(timeRequired) + " month(s)")

#totalCost = calc.calcCost()
#totalCost = format(totalCost, '.2f')
#total_costs = tkinter.Label(window, text = 'Price Quote', font=('Arial Narrow', 20)).grid(row=200, column=85)    #print("Price quote: $", totalCost)

''' logo = tkinter.PhotoImage(file=r"C:\Users\brian\OneDrive\Documents\TCU\Junior Year\Second Semester\Business Information System Development INSC 30833\Bar Ad Pic.PNG")

YOU MUST USE THE FILE PATH TO THE LOGO ON YOUR OWN COMPUTER

THIS SHOWS MY PERSONAL FILE PATH

w1 = tkinter.Label(window, image=logo).grid(row=0, column = 2)

window.title('Barrington Advisory Quota Calculator') #Window Title window.geometry('500x325') #Sets the size of the window

window.configure(bg='light blue') <- If we want to change the color of the background

e = QuotaCalc(window)

window.mainloop() #Tells the program to continue running until the GUI is closed

baumbachb commented 3 years ago

We are close, the computation is still wrong, but everything else is right

'''

Barrington Advisory Solutions BIS Development Team Project

'''

import tkinter

service = { #This is the dictionary that holds all of the services and their associated prices 'Mergers and Acquisitions':3000, 'Business Valuations':2000, 'Financial Analysis & Operational Ideas':5000, 'Strategic Planning Services':3500, 'Specialized Strategic Consultion Services':4000, 'Litigation Support':6000, '': 0 }

services = [ #This is the list that holds all of the services (Used for the GUI output) '', 'Mergers and Acquisitions', 'Business Valuations', 'Financial Analysis & Operational Ideas', 'Strategic Planning Services', 'Specialized Strategic Consultion Services', 'Litigation Support' ]

window = tkinter.Tk() #Creates the window (GUI)

class QuotaCalc:

## A class that asks for data about a client and then calculates
## both the time required for the service and the total estimate cost

def __init__(self, main, cust_name = 'none', co_size = 0, option1=None, option2=None, option3=None):      ##This initializes the class with all of the variables that we will use

    self.co_name = tkinter.Label(main, text = 'Customer/Company Name', font=('Arial Narrow', 20)).grid(row=20, column=1)       #This displays text, the font is the font, and this tells the program what to display
    self.co_name_input = tkinter.Entry(main).grid(row=20, column=3)      #Allows user to input information       #by putting both on row 0, it alligns the text

can add in blank lables to space out the boxes (reduce the font to something small)

    clicked = tkinter.StringVar()           #initalizing "clicked" as a string variable
    clicked2 = tkinter.StringVar()
    clicked3 = tkinter.StringVar()

    clicked.set(services[0])                #Text to be displayed on the menu dropdown
    clicked2.set(services[0])
    clicked3.set(services[0])

    timeRequired = 0

    self.co_size = tkinter.Label(main, text = 'Company Size', font=('Arial Narrow', 20)).grid(row=40, column=1)
    self.comp_size_input = tkinter.Entry(main).grid(row=40, column=3)

    self.option_1 = tkinter.Label(main, text = 'Service 1 Needed', font=('Arial Narrow', 20)).grid(row=60, column=1)    
    self.drop = tkinter.OptionMenu( main , clicked , *service ).grid(row = 60, column = 3)                              #refers to the set number of services for dropdown

    self.option_2 = tkinter.Label(main, text = 'Service 2 Needed', font=('Arial Narrow', 20)).grid(row=80, column=1)
    self.drop2 = tkinter.OptionMenu( main , clicked2 , *service ).grid(row = 80, column = 3)

    self.option_3 = tkinter.Label(main, text = 'Service 3 Needed', font=('Arial Narrow', 20)).grid(row=100, column=1)
    self.drop3 = tkinter.OptionMenu( main , clicked3 , *service ).grid(row = 100, column = 3)

    activated = True

    self.bt = tkinter.Button(main, text='Calculate', command = self.myClick, fg = "purple", bg = "light blue").grid(row=120, column=2)     ##fg is foreground (color), bg is background (color)
    #Need to convert to when the button presses, it runs other functions of the class

    time_req = tkinter.Label(window, text = 'Time Required', font=('Arial Narrow', 20)).grid(row=140, column=1)

    total_cost = tkinter.Label(window, text = 'Price Quote', font=('Arial Narrow', 20)).grid(row=160, column=1)

make a boolean to see if the button has been clicked and set it to false, when the boolean becomes true run the functions that do the math

def getTime(self, comp_size_input):

    if self.comp_size_input == 0:                        #This determines how much time will be necessary based on the size of the company
        self.timeRequired = 0
    elif self.comp_size_input <= 20:
        self.timeRequired = 1
    elif self.comp_size_input <= 40:
        self.timeRequired = 2
    elif self.comp_size_input <= 60:
        self.timeRequired = 3
    elif self.comp_size_input <= 80:
        self.timeRequired = 4
    elif self.comp_size_input <= 100:
        self.timeRequired = 5
    elif self.comp_size_input <= 150:
        self.timeRequired = 6
    else:
        self.timeRequired = 8

    #return timeRequired

def calcCost(self):                                 #This calculates the total cost of the services
    cost = self.timeRequired * service[self.drop]
    if self.option2 != '':
        cost += self.timeRequired * service[self.drop2]
    if self.option3 != '':
        cost += self.timeRequired * service[self.drop3]

    #return cost

def myClick(self):

    timeRequired = self.getTime()
    cost = self.calcCost

    myLabel = tkinter.Label(window,text = cost)
    myLabel.grid(row=140, column=3)
    myLabel2 = tkinter.Label(window, text = timeRequired)
    myLabel2.grid(row=160, column=3)

''' if name == "main":

#calc = QuotaCalc(name, size, option1, option2, option3)
#timeRequired = calc.getTime()
#time_required = tkinter.Label(window, text = timeRequired, font=('Arial Narrow', 20)).grid(row=175, column=85)       #print("Time rquired: ", str(timeRequired) + " month(s)")

#totalCost = calc.calcCost()
#totalCost = format(totalCost, '.2f')
#total_costs = tkinter.Label(window, text = 'Price Quote', font=('Arial Narrow', 20)).grid(row=200, column=85)    #print("Price quote: $", totalCost)

'''

logo = tkinter.PhotoImage(file=r"C:\Users\brian\OneDrive\Documents\TCU\Junior Year\Second Semester\Business Information System Development INSC 30833\Bar Ad Pic.PNG")

YOU MUST USE THE FILE PATH TO THE LOGO ON YOUR OWN COMPUTER

THIS SHOWS MY PERSONAL FILE PATH

w1 = tkinter.Label(window, image=logo).grid(row=0, column = 2)

window.title('Barrington Advisory Quota Calculator') #Window Title window.geometry('1000x500') #Sets the size of the window

window.configure(bg='light blue') <- If we want to change the color of the background

e = QuotaCalc(window)

window.mainloop() #Tells the program to continue running until the GUI is closed

baumbachb commented 3 years ago

'''

Barrington Advisory Solutions BIS Development Team Project

'''

import tkinter

service = { #This is the dictionary that holds all of the services and their associated prices 'Mergers and Acquisitions':3000, 'Business Valuations':2000, 'Financial Analysis & Operational Ideas':5000, 'Strategic Planning Services':3500, 'Specialized Strategic Consultion Services':4000, 'Litigation Support':6000, '': 0 }

services = [ #This is the list that holds all of the services (Used for the GUI output) '', 'Mergers and Acquisitions', 'Business Valuations', 'Financial Analysis & Operational Ideas', 'Strategic Planning Services', 'Specialized Strategic Consultion Services', 'Litigation Support' ]

window = tkinter.Tk() #Creates the window (GUI)

class QuotaCalc:

## A class that asks for data about a client and then calculates
## both the time required for the service and the total estimate cost

def __init__(self, main, cust_name = 'none', co_size = 0, option1=None, option2=None, option3=None):      ##This initializes the class with all of the variables that we will use

    self.co_name = tkinter.Label(main, text = 'Customer/Company Name', font=('Arial Narrow', 20)).grid(row=20, column=1)       #This displays text, the font is the font, and this tells the program what to display
    self.co_name_input = tkinter.Entry(main).grid(row=20, column=3)      #Allows user to input information       #by putting both on row 0, it alligns the text

can add in blank lables to space out the boxes (reduce the font to something small)

    clicked = tkinter.StringVar()           #initalizing "clicked" as a string variable
    clicked2 = tkinter.StringVar()
    clicked3 = tkinter.StringVar()

    clicked.set(services[0])                #Text to be displayed on the menu dropdown
    clicked2.set(services[0])
    clicked3.set(services[0])

    timeRequired = 0

    comp_size_input = tkinter.IntVar()

    self.co_size = tkinter.Label(main, text = 'Company Size', font=('Arial Narrow', 20)).grid(row=40, column=1)
    self.comp_size_input = tkinter.Entry(main)
    self.comp_size_input.grid(row=40, column=3)

    self.option_1 = tkinter.Label(main, text = 'Service 1 Needed', font=('Arial Narrow', 20)).grid(row=60, column=1)    
    drop = tkinter.StringVar()
    self.drop = tkinter.OptionMenu( main , clicked , *service )
    self.drop.grid(row = 60, column = 3)                              #refers to the set number of services for dropdown
    #dropped = tkinter.StringVar(drop)

    self.option_2 = tkinter.Label(main, text = 'Service 2 Needed', font=('Arial Narrow', 20)).grid(row=80, column=1)
    drop2 = tkinter.StringVar()
    self.drop2 = tkinter.OptionMenu( main , clicked2 , *service )
    self.drop2.grid(row = 80, column = 3)
    #dropped2 = tkinter.StringVar(drop2)

    self.option_3 = tkinter.Label(main, text = 'Service 3 Needed', font=('Arial Narrow', 20)).grid(row=100, column=1)
    drop3 = tkinter.StringVar()
    self.drop3 = tkinter.OptionMenu( main , clicked3 , *service )
    self.drop3.grid(row = 100, column = 3)
    #dropped3 = tkinter.StringVar(drop3)

    activated = True

    self.bt = tkinter.Button(main, text='Calculate', command = self.myClick, fg = "purple", bg = "light blue").grid(row=120, column=2)     ##fg is foreground (color), bg is background (color)
    #Need to convert to when the button presses, it runs other functions of the class

    time_req = tkinter.Label(window, text = 'Time Required', font=('Arial Narrow', 20)).grid(row=140, column=1)

    total_cost = tkinter.Label(window, text = 'Price Quote', font=('Arial Narrow', 20)).grid(row=160, column=1)

make a boolean to see if the button has been clicked and set it to false, when the boolean becomes true run the functions that do the math

def getTime(self):

    if self.comp_size_input == 0:                        #This determines how much time will be necessary based on the size of the company
        self.timeRequired = 0
    elif self.comp_size_input <= 20:
        self.timeRequired = 1
    elif self.comp_size_input <= 40:
        self.timeRequired = 2
    elif self.comp_size_input <= 60:
        self.timeRequired = 3
    elif self.comp_size_input <= 80:
        self.timeRequired = 4
    elif self.comp_size_input <= 100:
        self.timeRequired = 5
    elif self.comp_size_input <= 150:
        self.timeRequired = 6
    else:
        self.timeRequired = 8

    #return timeRequired

def calcCost(self):                                 #This calculates the total cost of the services
    cost = self.timeRequired * service[self.drop]
    if self.drop2 != '':
        cost += self.timeRequired * service[self.drop2]
    if self.drop3 != '':
        cost += self.timeRequired * service[self.drop3]

    #return cost

def myClick(self):

    comp_size = self.comp_size_input.get()
    comp_size = int(comp_size)

    drop = str(self.drop)
    drop2 = str(self.drop2)
    drop3 = str(self.drop3)

    timeRequired = 0
    cost = 0

    if comp_size == 0:                        #This determines how much time will be necessary based on the size of the company
        self.timeRequired = 0
    elif comp_size <= 20:
        self.timeRequired = 1
    elif comp_size <= 40:
        self.timeRequired = 2
    elif comp_size <= 60:
        self.timeRequired = 3
    elif comp_size <= 80:
        self.timeRequired = 4
    elif comp_size <= 100:
        self.timeRequired = 5
    elif comp_size <= 150:
        self.timeRequired = 6
    else:
        self.timeRequired = 8

    cost = timeRequired * service[drop]
    if self.drop2 != '':
        cost += self.timeRequired * service[drop2]
    if self.drop3 != '':
        cost += self.timeRequired * service[drop3]

    myLabel = tkinter.Label(window,text = timeRequired)
    myLabel.grid(row=140, column=3)
    myLabel2 = tkinter.Label(window, text = cost)
    myLabel2.grid(row=160, column=3)

''' if name == "main":

#calc = QuotaCalc(name, size, option1, option2, option3)
#timeRequired = calc.getTime()
#time_required = tkinter.Label(window, text = timeRequired, font=('Arial Narrow', 20)).grid(row=175, column=85)       #print("Time rquired: ", str(timeRequired) + " month(s)")

#totalCost = calc.calcCost()
#totalCost = format(totalCost, '.2f')
#total_costs = tkinter.Label(window, text = 'Price Quote', font=('Arial Narrow', 20)).grid(row=200, column=85)    #print("Price quote: $", totalCost)

'''

logo = tkinter.PhotoImage(file=r"C:\Users\brian\OneDrive\Documents\TCU\Junior Year\Second Semester\Business Information System Development INSC 30833\Bar Ad Pic.PNG")

YOU MUST USE THE FILE PATH TO THE LOGO ON YOUR OWN COMPUTER

THIS SHOWS MY PERSONAL FILE PATH

w1 = tkinter.Label(window, image=logo).grid(row=0, column = 2)

window.title('Barrington Advisory Quota Calculator') #Window Title window.geometry('1000x500') #Sets the size of the window

window.configure(bg='light blue') <- If we want to change the color of the background

e = QuotaCalc(window)

window.mainloop() #Tells the program to continue running until the GUI is closed