def show(self, frame):
<EOL>if len(frame.shape) != <NUM_LIT:3>:<EOL><INDENT>raise ValueError('<STR_LIT>')<EOL><DEDENT>if not self.is_open:<EOL><INDENT>self.open()<EOL><DEDENT>self._window.clear()<EOL>self._window.switch_to()<EOL>self._window.dispatch_events()<EOL>image = ImageData(<EOL>frame.shape[<NUM_LIT:1>],<EOL>frame.shape[<NUM_LIT:0>],<EOL>'<STR_LIT>',<EOL>frame.tobytes(),<EOL>pitch=frame.shape[<NUM_LIT:1>]*-<NUM_LIT:3><EOL>)<EOL>image.blit(<NUM_LIT:0>, <NUM_LIT:0>, width=self._window.width, height=self._window.height)<EOL>self._window.flip()<EOL>
Show an array of pixels on the window.

Args:
    frame (numpy.ndarray): the frame to show on the window

Returns:
    None