Grx.set_driver

@accepts(unicode)
@returns(bool)
def set_driver(driver_spec):
    # Python wrapper for grx_set_driver()
  

The driver spec is of the format "\[<name>\[::<flag>\]\] \[gw <width>\] \[gh <height>\] \[gc <colors>\] \[dp <dpi>\]".

- "<name>" is the name of a video driver plugin. - "<flag>" is "fs" for fullscreen or "ww" for windowed (not supported by all drivers) - "<width>" is the default width - "<height>" is the default height - "<colors>" is the default color depth. "K" and "M" suffixes are recognized. - "<dpi>" the display resolution in dots per inch.

If driver_spec is None, then it will first check the GRX_DRIVER environment variable for a driver spec. If the environment variable is not present, then it will uses the driver with the highest number of modes.

driver_spec

The driver spec.

Returns