def set_size(self, size, update=True):
        """Set the window size.
        :size: list or tuple: the new size.
        Raises a TypeError if something else than a list or a tuple is sent."""
        if isinstance(size, (list, tuple)):
            # Call the Xlib object handling the size to update it.
            if DEBUG_WM:
                print "Setting size to", size
                print "actual size", self.get_size()
            self.sizeSetter.configure(width=size[0], height=size[1])
            if update:
                self.sync()
        else:
            # Raise a Type error.
            raise TypeError("%s is not a list or a tuple." % size)
Set the window size.
        :size: list or tuple: the new size.
        Raises a TypeError if something else than a list or a tuple is sent.
mcplatform.py