code: def get_screen_resolution(self):
          
          widget = QDesktopWidget()
          geometry = widget.availableGeometry(widget.primaryScreen())
          return geometry.width(), geometry.height()
docs: Return the screen resolution of the primary screen.