Esempio n. 1
0
 def laterButtonCB(self, *args):
     subp = self.currentSubProblemName()
     names = self.orderedSubProblemNames()
     which = names.index(subp)
     names[which:which+2] = [names[which+1], subp]
     meshmenu.ReorderSubproblems(mesh=self.currentFullMeshName(),
                                 subproblems=names)
Esempio n. 2
0
 def earlierButtonCB(self, *args):
     subp = self.currentSubProblemName()
     names = self.orderedSubProblemNames()
     which = names.index(subp)
     names[which-1:which+1] = [subp, names[which-1]]
     meshmenu.ReorderSubproblems(mesh=self.currentFullMeshName(),
                                 subproblems=names)
Esempio n. 3
0
 def lastButtonCB(self, *args):
     subp = self.currentSubProblemName()
     names = self.orderedSubProblemNames()
     names.remove(subp)
     meshmenu.ReorderSubproblems(mesh=self.currentFullMeshName(),
                                 subproblems=names+[subp])