Ejemplo n.º 1
0
    def __init__(self):
        super().__init__()
        self.imgs = {}
        self.selection = None
        self.result = None

        # GUI
        box = gui.widgetBox(self.controlArea, "Info", margin=3)
        self.infoa = gui.widgetLabel(
            box, 'No data on msk yet, waiting to get something.')

        gui.checkBox(self.buttonsArea,
                     self,
                     'automatic_propagation',
                     'Automatic propagation',
                     callback=self.commit)

        box2 = gui.widgetBox(self.mainArea, "Display")
        hb = gui.hBox(box2)
        self.display = SFigure(self)
        hb.layout().addWidget(self.display)
        self.lv_images = QtWidgets.QListWidget(self)
        self.lv_images.setSelectionMode(
            QtWidgets.QAbstractItemView.ExtendedSelection)
        self.lv_images.itemClicked.connect(self.on_selection)
        hb.layout().addWidget(self.lv_images)
Ejemplo n.º 2
0
    def __init__(self):
        super().__init__()
        self.imgs = None
        self.result = None

        #GUI
        box2 = gui.widgetBox(self.controlArea, "Display")
        hb = gui.hBox(box2)
        self.display = SFigure(self)
        hb.layout().addWidget(self.display)
        self.lv_images = QtWidgets.QListWidget(self)
        self.lv_images.setSelectionMode(
            QtWidgets.QAbstractItemView.ExtendedSelection)
        self.lv_images.itemClicked.connect(self.on_selection)
        hb.layout().addWidget(self.lv_images)