MCPcopy Create free account
hub / github.com/ActiveState/code / Winner

Function Winner

recipes/Python/580636_Space_Assault/recipe-580636.py:6736–6767  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

6734 self.lbScore.config(text="Wave: "+str(wave)+" Press 'p' to pause")
6735
6736 def Winner():
6737 global gameover
6738 if gameover == 0:
6739 gameover = 1
6740 self.unbind('<Left>')
6741 self.unbind('<Right>')
6742 self.unbind('<Up>')
6743 self.unbind('<Down>')
6744 self.unbind('<space>')
6745 self.after_cancel(EnemyMove)
6746 self.after_cancel(Enemy2Move)
6747 self.after_cancel(Enemy3Move)
6748 self.after_cancel(Enemy4Move)
6749 self.after_cancel(Enemy5Move)
6750 self.after_cancel(CreateEnemy)
6751 self.after_cancel(CreateEnemy2)
6752 self.after_cancel(CreateEnemy3)
6753 self.after_cancel(CreateEnemy4)
6754 self.after_cancel(CreateEnemy5)
6755 self.after_cancel(CreateEnemy6)
6756 self.after_cancel(Generate)
6757 self.after_cancel(NextWave)
6758 self.after_cancel(ShotMove)
6759 self.after_cancel(enShotMove)
6760 for self.shot in Shots:
6761 self.shot.destroy()
6762 self.lbScore.destroy()
6763 self.lbWinner = Label(text="You Win!!!",bg="black",fg="white")
6764 self.lbWinner.pack(fill=BOTH,expand=1)
6765 self.btnMainMenu = Button(text="Main Menu")
6766 self.btnMainMenu.pack(side=LEFT)
6767 self.btnMainMenu.bind('<Button>',StartMainMenu)
6768
6769 def GameOver():
6770 global gameover

Callers 1

SummonFunction · 0.85

Calls 5

LabelClass · 0.85
ButtonClass · 0.50
destroyMethod · 0.45
packMethod · 0.45
bindMethod · 0.45

Tested by

no test coverage detected