예제 #1
0
 def addFromLayout(self, Layout):
   # Layout is a recursive list of JobLayout items. At the end
   # of each tree there is a JobLayout object which has a 'job'
   # member, which is what we're looking for. Fortunately, the
   # canonicalize() function flattens the tree.
   #
   # Positions of jobs have already been set (we're assuming)
   # prior to calling this function.
   self.jobs = self.jobs + parselayout.canonicalizePanel(Layout)
예제 #2
0
 def addFromLayout(self, Layout):
     # Layout is a recursive list of JobLayout items. At the end
     # of each tree there is a JobLayout object which has a 'job'
     # member, which is what we're looking for. Fortunately, the
     # canonicalize() function flattens the tree.
     #
     # Positions of jobs have already been set (we're assuming)
     # prior to calling this function.
     self.jobs = self.jobs + parselayout.canonicalizePanel(Layout)