def set_x(self, x):
        "Set x position"
        if(x>=0):
            self.x=x
        else:
            self.x=self.w+x
def set_x ( self , x ) : if ( x >= 0 ) : self . x = x else : self . x = self . w + x
Set x position