def isRegionValid(self):
        """ Returns false if the whole region is not even partially inside any screen, otherwise true """
        screens = PlatformManager.getScreenDetails()
        for screen in screens:
            s_x, s_y, s_w, s_h = screen["rect"]
            if self.x+self.w >= s_x and s_x+s_w >= self.x and self.y+self.h >= s_y and s_y+s_h >= self.y:
                # Rects overlap
                return True
        return False
def isRegionValid ( self ) : screens = PlatformManager . getScreenDetails ( ) for screen in screens : s_x , s_y , s_w , s_h = screen [ "rect" ] if self . x + self . w >= s_x and s_x + s_w >= self . x and self . y + self . h >= s_y and s_y + s_h >= self . y : return True return False
Returns false if the whole region is not even partially inside any screen, otherwise true