Example #1
0
class ImageSelector(QWidget):
    def __init__(self, parent=None):
        super(ImageSelector, self).__init__()
        self.imagebar = ImageBar()
        layout = OverlayCenter(self.imagebar)
        self.slider   = QSlider(Qt.Horizontal)
        left = Overlay("left")
        left.addWidget(self.slider)
        layout.addLayout(left)
        #layout.setSpacing(0)
        self.setLayout(layout)
        
    def setThumbs(self, thumbs):
        self.imagebar.setThumbs(thumbs)
        self.slider.setRange(0,len(thumbs)-1)
Example #2
0
 def __init__(self, parent=None):
     super(ImageSelector, self).__init__()
     self.imagebar = ImageBar()
     layout = OverlayCenter(self.imagebar)
     self.slider   = QSlider(Qt.Horizontal)
     left = Overlay("left")
     left.addWidget(self.slider)
     layout.addLayout(left)
     #layout.setSpacing(0)
     self.setLayout(layout)