def __init__(self, parent=None):
    QtGui.QFrame.__init__(self, parent)
    self.setObjectName('frame')
    self.setFrameStyle(self.NoFrame)
    self.setContentsMargins(self.MARGIN, self.MARGIN, self.MARGIN, self.MARGIN)
    self.label = QtGui.QLabel(self)
    self.label.setAlignment((QtCore.Qt.AlignVCenter | QtCore.Qt.AlignLeft))
    self.label.setWordWrap(True)
    self.thumbnail = QtGui.QLabel(self)
    self.thumbnail.setScaledContents(True)
    self.layout = QtGui.QHBoxLayout(self)
    self.layout.addWidget(self.thumbnail)
    self.layout.addWidget(self.label)
    self.layout.setStretchFactor(self.label, 1)
    self.layout.setContentsMargins(0, 0, 0, 0)
    self.setLayout(self.layout)
    self.setVisible(False)
    self.set_selected(False)
def __init__(self, parent=None):
    QtGui.QFrame.__init__(self, parent)
    self.setObjectName('frame')
    self.setFrameStyle(self.NoFrame)
    self.setContentsMargins(self.MARGIN, self.MARGIN, self.MARGIN, self.MARGIN)
    self.label = QtGui.QLabel(self)
    self.label.setAlignment((QtCore.Qt.AlignVCenter | QtCore.Qt.AlignLeft))
    self.label.setWordWrap(True)
    self.thumbnail = QtGui.QLabel(self)
    self.thumbnail.setScaledContents(True)
    self.layout = QtGui.QHBoxLayout(self)
    self.layout.addWidget(self.thumbnail)
    self.layout.addWidget(self.label)
    self.layout.setStretchFactor(self.label, 1)
    self.layout.setContentsMargins(0, 0, 0, 0)
    self.setLayout(self.layout)
    self.setVisible(False)
    self.set_selected(False)