(self, args)
WINDOW: Set/unset the logical coordinate window.
WINDOW: Set/unset the logical coordinate window.
WINDOW : Set / unset the logical coordinate window .
def window_(self, args):
        """WINDOW: Set/unset the logical coordinate window."""
        if self._mode.is_text_mode:
            raise error.BASICError(error.IFC)
        cartesian = not next(args)
        try:
            coords = [values.to_single(_arg).to_value() for _arg in islice(args, 4)]
        except StopIteration:
            coords = []
        if not coords:
            self._unset_window()
        else:
            x0, y0, x1, y1 = coords
            if x0 == x1 or y0 == y1:
                raise error.BASICError(error.IFC)
            list(args)
            self._set_window(x0, y0, x1, y1, cartesian)
def window_ ( self , args ) : if self . _mode . is_text_mode : raise error . BASICError ( error . IFC ) cartesian = not next ( args ) try : coords = [ values . to_single ( _arg ) . to_value ( ) for _arg in islice ( args , 4 ) ] except StopIteration : coords = [ ] if not coords : self . _unset_window ( ) else : x0 , y0 , x1 , y1 = coords if x0 == x1 or y0 == y1 : raise error . BASICError ( error . IFC ) list ( args ) self . _set_window ( x0 , y0 , x1 , y1 , cartesian )