def __init__(self): self.progress = ShipFuel.STEPS_TO_CONSUME VerticalProgressBar.__init__(self, steps = self.progress, position = ShipFuel.POSITION, color = ShipFuel.DEFAULT_COLOR, height = 200, width = 10 ) ''' seconds to consume the fuel ''' self.seconds = ShipFuel.SECONDS_TO_COSUME ''' consume rate ''' self.set_rate() self.part = 0
def reset(self): VerticalProgressBar.reset(self)