+ 24

Is it possible to find what is screen resolution of the device we are working on using python ?

I want to know if it is possible to find out the width and height of screen or the number of columns and rows the screen is having using python.

27th Jan 2019, 1:00 PM
Nova
Nova - avatar
2 odpowiedzi
+ 9
Thank You For The Help. But this can't be run in Sololearn Playground as we can't access the packages like Tkinter, wxWidgets, etc here. How to find the number of rows and columns while using Sololearn Code Playground ???
28th Jan 2019, 1:37 PM
Nova
Nova - avatar
+ 4
Mac OS: import AppKit [(screen.frame().size.width, screen.frame().size.height) for screen in AppKit.NSScreen.screens()] Windows 8+: (64 Bit req. changes) from win32api import GetSystemMetrics print("Width =", GetSystemMetrics(0)) print("Height =", GetSystemMetrics(1))
27th Jan 2019, 4:53 PM
Alex Nicolas Kessi
Alex Nicolas Kessi - avatar