def up(self):
i = self.index()<EOL>if i != None:<EOL><INDENT>del self.canvas.layers[i]<EOL>i = min(len(self.canvas.layers), i+<NUM_LIT:1>)<EOL>self.canvas.layers.insert(i, self)<EOL><DEDENT>
Moves the layer up in the stacking order.