def setPixmap(self, pixmap):
    self.pixmapLabel.setPixmap(pixmap)
    size = pixmap.size()
    if ((size - QSize(1, 0)) == self.pixmapLabelArea.maximumViewportSize()):
        size -= QSize(1, 0)
    self.pixmapLabel.resize(size)
def setPixmap(self, pixmap):
    self.pixmapLabel.setPixmap(pixmap)
    size = pixmap.size()
    if ((size - QSize(1, 0)) == self.pixmapLabelArea.maximumViewportSize()):
        size -= QSize(1, 0)
    self.pixmapLabel.resize(size)