In Settings > Display it says that my screen resolution is set to 1920x1080 . But I've tried to get it with 3 different methods in python:
1- With Tkinter:
from tkinter import *
root = Tk()
Width = root.winfo_screenwidth()
Height= root.winfo_screenheight()
2- With win32api:
from win32api import GetSystemMetrics
Width = GetSystemMetrics(0)
Height = GetSystemMetrics(1)
3- With ctypes:
import ctypes
Width = ctypes.windll.user32.GetSystemMetrics(0)
Height = ctypes.windll.user32.GetSystemMetrics(1)
All of these methods keep returning Width = 1536 and Height = 864 and not the resolution that it says in my display settings.
How could I get the same resolution as displayed in the Display Settings (1920x1080)?