Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

screen size python

from screeninfo import get_monitors
screen = get_monitors()[0]

# if that raises an error, put this first
# from os import environ
# environ['DISPLAY'] = ':0.0'

print(screen)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #screen #size #python
ADD COMMENT
Topic
Name
3+6 =