Ejemplo n.º 1
0
 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)
Ejemplo n.º 2
0
 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)
Ejemplo n.º 3
0
    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")
Ejemplo n.º 4
0
    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")
Ejemplo n.º 5
0
 def getNames(self):
     return namedanalysis.bulkAnalysisNames()
Ejemplo n.º 6
0
 def getNames(self):
     return (namedanalysis.bulkAnalysisNames() + 
             namedanalysis.bdyAnalysisNames())
Ejemplo n.º 7
0
 def getNames(self):
     return namedanalysis.bulkAnalysisNames()
Ejemplo n.º 8
0
 def getNames(self):
     return (namedanalysis.bulkAnalysisNames() +
             namedanalysis.bdyAnalysisNames())