super
This commit is contained in:
@@ -2,13 +2,13 @@ from displays.Display import Display
|
|||||||
|
|
||||||
class SpecialDisplay(Display):
|
class SpecialDisplay(Display):
|
||||||
def __init__(self, name):
|
def __init__(self, name):
|
||||||
super(SpecialDisplay, self).__init__(name)
|
super().__init__(name)
|
||||||
self.credits = 0
|
self.credits = 0
|
||||||
self.gameTimeBonus = 0
|
self.gameTimeBonus = 0
|
||||||
self.ballsToPlay = 0
|
self.ballsToPlay = 0
|
||||||
|
|
||||||
def printScore(self):
|
def printScore(self):
|
||||||
super.write_score(int(str(self.credits).zfill(2)
|
super().printScore(int(str(self.credits).zfill(2)
|
||||||
+ str(self.gameTimeBonus).zfill(2)
|
+ str(self.gameTimeBonus).zfill(2)
|
||||||
+ str(self.ballsToPlay).zfill(2)))
|
+ str(self.ballsToPlay).zfill(2)))
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user