(self, to_width)
Set the number of columns of the screen, reset pages and change modes.
Set the number of columns of the screen, reset pages and change modes.
Set the number of columns of the screen reset pages and change modes .
def set_width(self, to_width):
        """Set the number of columns of the screen, reset pages and change modes."""
        # if we're currently at that width, do nothing
        if to_width == self.mode.width:
            return
        new_mode = modes.to_width(self._adapter, self.mode, to_width)
        self.screen(new_mode, None, 0, 0, new_width=to_width)
def set_width ( self , to_width ) : # if we're currently at that width, do nothing if to_width == self . mode . width : return new_mode = modes . to_width ( self . _adapter , self . mode , to_width ) self . screen ( new_mode , None , 0 , 0 , new_width = to_width )