'Performs sanity checks and update the current amount'

def update(self, amount, update_screen=True):

    if (amount < self.minimum):
        amount = self.minimum
    if (amount > self.maximum):
        amount = self.maximum
    self.current_amount = amount
    if update_screen:
        self.update_screen()
