1from screeninfo import get_monitors
2screen = get_monitors()[0]
34# if that raises an error, try using this first5# from os import environ6# environ['DISPLAY'] = ':0.0'78print(screen)
you will get a confirmation link on this - you will have to click that for successful submission of your answer. we require this to keep the website free of spam, bots and unhelpful content
please ensure to add code which is syntactically corrent and executes properly
you will get a confirmation link on this - you will have to click that for successful submission of your question. we require this to keep the website free of spam, bots and unhelpful content