Ejemplo n.º 1
0
                      text=str(person.getName()),
                      font=("Purisa", 10))

    def inoculatePeople(self):
        self.master.after(2000, self.subInoculate)

    def infectPeople(self):
        self.time += 1
        self.infectedListA, self.infectedListB = simulate.spreadInfection()
        A, B = simulate.getDict()
        self.master.after(1000, self.subInfect)
        self.moveVirus(A, B)


simulate = Simulation()
simulate.secureStart()
clusterA = simulate.populationA.getClusters()
clusterB = simulate.populationB.getClusters()
populationA = simulate.populationA
populationB = simulate.populationB
targetA = simulate.Atargetlist
targetB = simulate.Btargetlist
infectListA = populationA.getLevelsOfInfection()
infectListB = populationB.getLevelsOfInfection()

root = gwaphics.Tk()
app = Application(root)
ButtonThing(root, app)
app.createCanvas()
app.graphSign()
app.setTarget([targetA, targetB])