def screen ( self , width , height , colorDepth ) : screenEvent = ScreenEvent ( ) screenEvent . width . value = width screenEvent . height . value = height screenEvent . colorDepth . value = colorDepth self . rec ( screenEvent )
how to change screen resolution python
def screen(self, width, height, colorDepth):
        """
        @summary: record resize event of screen (maybe first event)
        @param width: {int} width of screen
        @param height: {int} height of screen
        @param colorDepth: {int} colorDepth
        """
        screenEvent = ScreenEvent()
        screenEvent.width.value = width
        screenEvent.height.value = height
        screenEvent.colorDepth.value = colorDepth
        self.rec(screenEvent)