def sensitize_widgets(self, *args): debug.mainthreadTest() meshctxt = self.currentMeshContext() meshok = meshctxt and not meshctxt.outOfSync() go_sensitive = bool(meshok and self.op_obj.isValid() and self.output_obj.isValid() and self.destwidget.isValid() and self.domain_obj.isValid() and self.sample_obj.isValid() and self.timeWidget.isValid()) self.go_button.set_sensitive(go_sensitive) namedok = len(namedanalysis.bulkAnalysisNames()) > 0 self.sensitizeBottomRow(go_sensitive, namedok) self.namedAnalysisChooser.gtk.set_sensitive(namedok)
def setNamedAnalysisChooser(self, *args): if self.suppressRetrievalLoop: return # Display the name for the current analysis if the current # settings happen to match a named analysis. Call this # whenever anything on the page changes. self.namedAnalysisChooser.update([''] + namedanalysis.bulkAnalysisNames()) # If the get_value calls fail, the widgets aren't in a valid # state, and therefore there's no current name. # findNamedBulkAnalysis returns "" if it can't find a match. try: currentname = namedanalysis.findNamedBulkAnalysis( self.op_obj.get_value(), self.output_obj.get_value(), self.domain_obj.get_value(), self.sample_obj.get_value()) except: currentname = "" self.namedAnalysisChooser.set_state(currentname) gtklogger.checkpoint("named analysis chooser set")
def getNames(self): return namedanalysis.bulkAnalysisNames()
def getNames(self): return (namedanalysis.bulkAnalysisNames() + namedanalysis.bdyAnalysisNames())