Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

get screen size python

>>> import pyautogui

>>> width, height= pyautogui.size()

>>> print(width)
1366

>>> print(height)
768
Comment

python get screen size

from win32api import GetSystemMetrics

print("Width =", GetSystemMetrics(0))
print("Height =", GetSystemMetrics(1))
Comment

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)
Comment

python how to get the screen size

from win32api import GetSystemMetrics
screen_width = GetSystemMetrics(0)
screen_height = GetSystemMetrics(1)
Comment

PREVIOUS NEXT
Code Example
Python :: Remove duplicates with pandas 
Python :: how to save image opencv 
Python :: txt to list python 
Python :: copy whole directory python 
Python :: how to make a custom icon for pygame 
Python :: rotation turtle python 
Python :: code how pandas save csv file 
Python :: increase xlabel font size matplotlib 
Python :: python apply a function to a list inplace 
Python :: flask delete cookie stackoverflow 
Python :: how to check if python has been added to path 
Python :: python get full path 
Python :: select categorical columns pandas 
Python :: export file csv python 
Python :: get list of unique values in pandas column 
Python :: python split string in pairs 
Python :: pandas tuple from two columns 
Python :: pd.options.display.max_columns()pd.options.display.max_row() 
Python :: remove extension from filename python 
Python :: get mouse postition python 
Python :: python3 install google 
Python :: python make txt file 
Python :: how to calculate rmse in linear regression python 
Python :: python selenium run javascript 
Python :: clearing all text from a file in python 
Python :: matplotlib marker hollow circle 
Python :: pandas uniqe values in the columns 
Python :: count number of islands python 
Python :: plot function in numpy 
Python :: month from datetime pandas 
ADD CONTENT
Topic
Content
Source link
Name
8+9 =