def _createWidgets(self): """ Creates the widgets this class is responsible for. """ stageBar, stageLabel, stageBox = widgets.createProgressBarWithLabel() self.addStageProgressBar(stageBar) self.addDefaultStageProgressLabel(stageLabel) totalBar, totalLabel, totalBox = widgets.createProgressBarWithLabel() self.addTotalProgressBar(totalBar) self.addDefaultTotalProgressLabel(totalLabel) self._widget = widgets.createPanel( stageBox, totalBox, xscale=1.0, yalign=0.5)
def _createWidgets(self): """ Creates the widgets this class is responsible for. """ widgets = ( self._createFunctionTable(), gtk.Label(gettext('The production system is not calibrated.'))) self._widget = createPanel(*widgets, yalign=0.5, xscale=1.0) self._widget.show_all() # The widget needs to have a reference to this instance to prevent it # from being reclaimed as garbage while the widget is still alive. self._widget.functionWidgetHandler = self for w in widgets: w.set_no_show_all(True) self._functionTable, self._notCalibratedLabel = widgets