Easygui inserts curly brackets when we try to break the text is there a way to break the text without it giving the curly brackets.
import easygui
#Class for seperating workers.
class HumanClassification:
#Sets the default worker info to null:
def __init__(self):
self.age = 0
self.pay = 0
self.gender = ''
#Outputs the workers info:
def classification(self, age, pay, gender):
self.age = age
self.pay = pay
self.gender = gender
#Current Workers:
myListWorkers = ['Bob', 'Diann', 'Tec']
Bob = HumanClassification()
Diann = HumanClassification()
Tec = HumanClassification()
#Instantize Classes:
Bob.classification(42, 15000, 'male')
Diann.classification(25, 1000, 'female')
Tec.classification(18, 200000, 'male')
#Asks user if he/she wants to find info about worker:
bossInput = easygui.buttonbox("Who do you want to view info on? ", choices=myListWorkers)
bossInputNew = eval(bossInput)
output = 'Age:', bossInputNew.age, 'years','old \n', 'Pay:', bossInputNew.pay, 'dollars', 'Gender:', bossInputNew.gender
#Prints out the output from code:
easygui.msgbox(msg=(output))