Esempio n. 1
0
 def displayPools(self, displayDict, meshEntry):
     ret = {}
     for pool, dinfo in displayDict.items():
         x, y = self.reposition(dinfo.x, dinfo.y)            
         poolItem = PoolItem(pool, self)        
         poolItem.setDisplayProperties(
             displayinfo(x, y, dinfo.fc, dinfo.bc))            
         ret[pool] = poolItem
     self.poolGraphicsMap.update(ret)
     return ret
Esempio n. 2
0
 def displayReactions(self, displayDict, meshEntry):
     """Setup display of reaction obejcts"""
     ret = {}
     for reac, dinfo in displayDict.items():
         x, y = self.reposition(dinfo.x, dinfo.y)
         reacItem = ReacItem(reac, self)            
         reacItem.setDisplayProperties(
             displayinfo(x, y, dinfo.fc, dinfo.bc))
         ret[reac] = reacItem
     self.reacGraphicsMap.update(ret)
     return ret
Esempio n. 3
0
 def displayEnzymes(self, displayDict, meshEntry):
     """Display the enzymes"""
     ret = {}
     for enzPool, dinfo in displayDict.items():
         x, y = self.reposition(dinfo.x, dinfo.y)
         enzItem = EnzItem(enzPool, self)
         enzitem.setDisplayProperties(
             displayinfo(x, y, dinfo.fc, dinfo.bc))
         ret[enzPool] = enzItem
     self.enzGraphicsMap.update(ret)
     return ret