コード例 #1
0
    def __init__(self, *args, **kwargs):
        self.tab = kwargs.pop("tab", None)
        self.main = kwargs.pop("main", None)
        self.automaticDraw = True

        Dock.__init__(self, *args, **kwargs)

        self._axialPlot = pg.PlotWidget()
        self._axialPlot.addLegend()

        self._axialControls = QtGui.QWidget(self)
        self._axialControlsLayout = QtGui.QGridLayout(self._axialControls)

        self._axialButtons = QtGui.QWidget(self._axialControls)
        self._axialButtonsLayout = QtGui.QHBoxLayout(self._axialButtons)

        self._calibButton = QtGui.QPushButton("Calibrate", self._axialButtons)
        self._calibButton.setIcon(QtGui.QIcon(":/16x16/16x16/Play_16x16.png"))
        self._calibButton.pressed.connect(self._CalibrateAxialPosition)

        self._calibDelButton = QtGui.QPushButton("Clear", self._axialButtons)
        self._calibDelButton.setIcon(
            QtGui.QIcon(":/16x16/16x16/Delete_16x16.png"))
        self._calibDelButton.pressed.connect(self._DeleteAxialCalibration)

        self._axialButtonsLayout.addWidget(self._calibButton)
        self._axialButtonsLayout.addWidget(self._calibDelButton)

        self._axialControlsLayout.addWidget(self._axialPlot, 0, 0, 1, 1)
        self._axialControlsLayout.addWidget(self._axialButtons, 1, 0, 1, 1)

        self.addWidget(self._axialControls)
コード例 #2
0
 def __init__(self, *args, **kwargs):
     self.tab = kwargs.pop("tab", None)
     self.main = kwargs.pop("main", None)
     self.automaticDraw = True
     Dock.__init__(self, *args, **kwargs) 
     
     self.dockArea = GoodnessDock.GoodnessTab(main = self.main, tab = self, tabName = "goodnessTab")  
     self.addWidget(self.dockArea)
コード例 #3
0
ファイル: Utils.py プロジェクト: david-hoffman/SMolPhot
 def __init__(self, *args, **kwargs):
     self.tab = kwargs.pop("tab", None)
     self.main = kwargs.pop("main", None)
     self.automaticDraw = True
     
     Dock.__init__(self, self.name(), **kwargs)   
     self.imv = MyImageView()
     self.imv.setContentsMargins(2, 2, 2, 2)
     self.addWidget(self.imv)
コード例 #4
0
    def __init__(self, *args, **kwargs):
        self.tab = kwargs.pop("tab", None)
        self.main = kwargs.pop("main", None)
        self.automaticDraw = True

        Dock.__init__(self, self.name(), **kwargs)
        self.imv = MyImageView()
        self.imv.setContentsMargins(2, 2, 2, 2)
        self.addWidget(self.imv)
コード例 #5
0
ファイル: FramesTab.py プロジェクト: david-hoffman/SMolPhot
 def __init__(self, *args, **kwargs):
     self.tab = kwargs.pop("tab", None)
     self.main = kwargs.pop("main", None)
     self.automaticDraw = True
     
     Dock.__init__(self, *args, **kwargs)
     
     self._dockarea = IterationsDock.Tab(main = self.main, tab = self, tabName = "IterationsTab")  
     self.addWidget(self._dockarea)
コード例 #6
0
ファイル: Utils.py プロジェクト: david-hoffman/SMolPhot
 def __init__(self, *args, **kwargs):
     self.tab = kwargs.pop("tab", None)
     self.main = kwargs.pop("main", None)
     self.automaticDraw = True
     
     Dock.__init__(self, *args, **kwargs)   
     self.plt = pg.PlotWidget()
     self.plt.addLegend()
     
     wrapWidget = QtGui.QWidget(self)
     wrapLayout = QtGui.QGridLayout(wrapWidget)
     wrapLayout.addWidget(self.plt, 0, 0, 1, 1)
     wrapWidget.setContentsMargins(2, 2, 2, 2)
     self.addWidget(wrapWidget)
コード例 #7
0
    def __init__(self, *args, **kwargs):
        self.tab = kwargs.pop("tab", None)
        self.main = kwargs.pop("main", None)
        self.automaticDraw = True

        Dock.__init__(self, *args, **kwargs)
        self.plt = pg.PlotWidget()
        self.plt.addLegend()

        wrapWidget = QtGui.QWidget(self)
        wrapLayout = QtGui.QGridLayout(wrapWidget)
        wrapLayout.addWidget(self.plt, 0, 0, 1, 1)
        wrapWidget.setContentsMargins(2, 2, 2, 2)
        self.addWidget(wrapWidget)
コード例 #8
0
 def __init__(self, *args, **kwargs):
     self.tab = kwargs.pop("tab", None)
     self.main = kwargs.pop("main", None)
     self.automaticDraw = False
     Dock.__init__(self, *args, **kwargs)   
     self.plt = pg.PlotWidget()
     
     self._controlsWidget = QtGui.QWidget(self)
     self._controlsLayout = QtGui.QVBoxLayout(self._controlsWidget)
     self._buttonsWidget = QtGui.QWidget(self._controlsWidget)
     self._buttonsLayout = QtGui.QHBoxLayout(self._buttonsWidget)
     self._processFramesButton = QtGui.QPushButton("Process frames", self._buttonsWidget)
     self._processFramesButton.setIcon(QtGui.QIcon(":/16x16/16x16/Play_16x16.png"))
     self._processFramesButton.pressed.connect(self.tab._ProcessFramesPressed)
     self._framesFrom = QtGui.QSpinBox(self._buttonsWidget)
     self._framesFrom.setEnabled(False)
     self._framesTo = QtGui.QSpinBox(self._buttonsWidget)
     self._studyName = QtGui.QLineEdit(self._buttonsWidget)
     self._studyName.setText("test study")
     self._studyName.setFixedWidth(120)
     self._saveResultsButton = QtGui.QPushButton("Save", self._buttonsWidget)
     self._saveResultsButton.setIcon(QtGui.QIcon(":/16x16/16x16/Save_16x16.png"))
     self._saveResultsButton.pressed.connect(self.tab._SaveResults)
     
     self._buttonsLayout.addWidget(QtGui.QLabel("Study name: "))
     self._buttonsLayout.addWidget(self._studyName)
     self._buttonsLayout.addWidget(QtGui.QLabel("From: "))
     self._buttonsLayout.addWidget(self._framesFrom)
     self._buttonsLayout.addWidget(QtGui.QLabel("To: "))
     self._buttonsLayout.addWidget(self._framesTo)
     self._buttonsLayout.addWidget(self._processFramesButton)
     self._buttonsLayout.addWidget(self._saveResultsButton)
     spacerItem = QtGui.QSpacerItem(20, 20, QtGui.QSizePolicy.Expanding, \
                                        QtGui.QSizePolicy.Minimum)
     self._buttonsLayout.addItem(spacerItem)
     
     # Progress bar
     self._resultsProgressBar = QtGui.QProgressBar(self._controlsWidget)
     self._resultsProgressBar.setEnabled(True)
     self._resultsProgressBar.setProperty("value", 0)
     
     # Parent layout
     self._controlsLayout.addWidget(self._buttonsWidget)
     self._controlsLayout.addWidget(self.plt)
     self._controlsLayout.addWidget(self._resultsProgressBar)
     self.addWidget(self._controlsWidget)
     
     # Variables
     self._allLocsNotPostprocessed = []
コード例 #9
0
 def __init__(self, *args, **kwargs):
     self.tab = kwargs.pop("tab", None)
     self.main = kwargs.pop("main", None)
     self.automaticDraw = False
     Dock.__init__(self, *args, **kwargs)   
     self.plt = pg.PlotWidget()
     
     self._controlsWidget = QtGui.QWidget(self)
     self._controlsLayout = QtGui.QGridLayout(self._controlsWidget)
     self._buttonsWidget = QtGui.QWidget(self._controlsWidget)
     self._buttonsLayout = QtGui.QHBoxLayout(self._buttonsWidget)
     self._processFramesButton = QtGui.QPushButton("Update", self._buttonsWidget)
     self._processFramesButton.setIcon(QtGui.QIcon(":/16x16/16x16/Play_16x16.png"))
     self._processFramesButton.pressed.connect(self._ProcessFramesPressed)
     self._buttonsLayout.addWidget(self._processFramesButton)
     spacerItem = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Expanding, \
                                        QtGui.QSizePolicy.Minimum)
     self._buttonsLayout.addItem(spacerItem)
     self._controlsLayout.addWidget(self._buttonsWidget, 0, 0, 1, 1)
     self._controlsLayout.addWidget(self.plt, 1, 0, 1, 1)
     self.addWidget(self._controlsWidget)