Exemplo n.º 1
0
 def _buildBottom(self):
     n = 0
     self.tab = None
     if self.mcaWidget is None:
         n += 1
     if self.rgbWidget is None:
         n += 1
     if n == 1:
         if self.mcaWidget is None:
             self.mcaWidget = McaWindow.McaWindow(self)
             self.mcaWidget.setWindowTitle("PyMCA - Mca Window")
             self.mainLayout.addWidget(self.mcaWidget)
         if self.rgbWidget is None:
             self.rgbWidget = RGBCorrelator.RGBCorrelator(self)
             self.mainLayout.addWidget(self.rgbWidget)
     elif n == 2:
         self.tab = qt.QTabWidget(self)
         self.mcaWidget = McaWindow.McaWindow()  #vertical=False)
         #self.mcaWidget.graph.setMinimumWidth(0.5 * \
         #                            qt.QWidget.sizeHint(self).width())
         self.tab.setMaximumHeight(1.3 * qt.QWidget.sizeHint(self).height())
         self.mcaWidget.setWindowTitle("PyMCA - Mca Window")
         self.tab.addTab(self.mcaWidget, "MCA")
         self.rgbWidget = RGBCorrelator.RGBCorrelator()
         self.tab.addTab(self.rgbWidget, "RGB Correlator")
         self.mainLayout.addWidget(self.tab)
     self.mcaWidget.setMiddleROIMarkerFlag(True)
 def testShow(self):
     from PyMca5.PyMcaGui.pymca import McaWindow
     widget = McaWindow.McaWindow()
     widget.show()
     self.qapp.processEvents()
     from PyMca5.PyMcaGui.plotting import PyMcaPrintPreview
     PyMcaPrintPreview.resetSingletonPrintPreview()
Exemplo n.º 3
0
 def testShow(self):
     widget = McaWindow.McaWindow()
     widget.show()
     self.qapp.processEvents()