code: def up(self):
          
          
          
          i = self.index()
          if i != None:
              del self.canvas.layers[i]
              i = min(len(self.canvas.layers), i+1)
              self.canvas.layers.insert(i, self)
docs: Moves the layer up in the stacking order.