qas_editor/gui/exams.py
def puzzleDrawingRect(self):
        """
        Returns the rect in which the puzzle is actualy drawn.
        """
        startingRect = self.drawableRect()
        pixelw = int(startingRect.width() / self.puzzleWidth())
        pixelh = int(startingRect.height() / self.puzzleHeight())
        drawRect = QtCore.QRect(0, 0, pixelw * self.puzzleWidth(), pixelh * self.puzzleHeight())
        drawRect.moveTo(startingRect.x() + int((startingRect.width() - drawRect.width()) * 0.5),
                        startingRect.y() + int((startingRect.height() - drawRect.height()) * 0.5))
        return drawRect

        Returns the rect in which the puzzle is actualy drawn.
        
Returns the rect in which the puzzle is actualy drawn.
Returns the rect in which the puzzle is actualy drawn .
def puzzleDrawingRect(self):
        startingRect = self.drawableRect()
        pixelw = int(startingRect.width() / self.puzzleWidth())
        pixelh = int(startingRect.height() / self.puzzleHeight())
        drawRect = QtCore.QRect(0, 0, pixelw * self.puzzleWidth(), pixelh * self.puzzleHeight())
        drawRect.moveTo(startingRect.x() + int((startingRect.width() - drawRect.width()) * 0.5),
                        startingRect.y() + int((startingRect.height() - drawRect.height()) * 0.5))
        return drawRect
def puzzleDrawingRect ( self ) : startingRect = self . drawableRect ( ) pixelw = int ( startingRect . width ( ) / self . puzzleWidth ( ) ) pixelh = int ( startingRect . height ( ) / self . puzzleHeight ( ) ) drawRect = QtCore . QRect ( 0 , 0 , pixelw * self . puzzleWidth ( ) , pixelh * self . puzzleHeight ( ) ) drawRect . moveTo ( startingRect . x ( ) + int ( ( startingRect . width ( ) - drawRect . width ( ) ) * 0.5 ) , startingRect . y ( ) + int ( ( startingRect . height ( ) - drawRect . height ( ) ) * 0.5 ) ) return drawRect
Returns the rect in which the puzzle is actualy drawn.
Returns the rect in which the puzzle is actualy drawn .
"""
        Returns the rect in which the puzzle is actualy drawn.
        """
self