def _buildStatusBar(self): """Create the status bar used to display the printer name or output file name.""" # status bar statusBar = qt.QStatusBar(self) self.targetLabel = qt.QLabel(statusBar) self._updateTargetLabel() statusBar.addWidget(self.targetLabel) self.mainLayout.addWidget(statusBar)
def __createPlotStatusBar(self, plot): converters = [('X', lambda x, y: x), ('Y', lambda x, y: y), ('Value', self.__getImageValue)] hbox = qt.QHBoxLayout() hbox.setContentsMargins(0, 0, 0, 0) info = PositionInfo(plot=plot, converters=converters) info.setSnappingMode(True) statusBar = qt.QStatusBar(plot) statusBar.setSizeGripEnabled(False) statusBar.addWidget(info) return statusBar