basicViewerPython.py
def paintEvent(self, e):
        """The Qt window must be redrawn, so we paint using our canvas."""

        if not self.canvas:
            # Ignore paint events before we've set up our canvas
            return
        painter = QtGui.QPainter(self)
        painter.drawImage(0, 0, self.canvas)
The Qt window must be redrawn, so we paint using our canvas.
The Qt window must be redrawn, so we paint using our canvas.
The Qt window must be redrawn so we paint using our canvas .
def paintEvent(self, e):
        if not self.canvas:
            return
        painter = QtGui.QPainter(self)
        painter.drawImage(0, 0, self.canvas)
def paintEvent ( self , e ) : if not self . canvas : return painter = QtGui . QPainter ( self ) painter . drawImage ( 0 , 0 , self . canvas )
The Qt window must be redrawn, so we paint using our canvas.
The Qt window must be redrawn so we paint using our canvas .
"""The Qt window must be redrawn, so we paint using our canvas.""" # Ignore paint events before we've set up our canvas
self
e