def set_position(self, pos, update=True):
        """Set the window position.
        :pos: list or tuple: the new position (x, y).
        :update: bool: wheteher to call the internal sync method."""
        if DEBUG_WM:
            print "Setting position to", pos
        if isinstance(pos, (list, tuple)):
            gx, gy = 0 or self.gx, 0 or self.gy
            if self.starting:
                gx, gy = self.position_gap[:2]
                if self.position_gap[2]:
                    self.gx = gx
                if self.position_gap[3]:
                    self.gy = gy
                self.starting = False
            # Call the Xlib object handling the position to update it.
            self.positionSetter.configure(x=pos[0] + gx, y=pos[1] + gy)
            if update:
                self.sync()
        else:
            # Raise a Type error.
            raise TypeError("%s is not a list or a tuple." % pos)
Set the window position.
        :pos: list or tuple: the new position (x, y).
        :update: bool: wheteher to call the internal sync method.
mcplatform.py