Ejemplo n.º 1
0
 def OnZoomMinus(self, evt):
     if self.canvas.getSocietyStatus() == "active":
         z.setLevel(z.getLevel()-1)
         currentLevel = z.getLevel()
         self.canvas.OrganizeAgents(boxWidth=z.viewLevelData[currentLevel]["BOXWIDTH"],
         boxHeight=z.viewLevelData[currentLevel]["BOXHEIGHT"],
         pixelLevel=z.viewLevelData[currentLevel]["PIXELLEVEL"],
         fontSize=z.viewLevelData[currentLevel]["FONTSIZE"],
         theradius=z.viewLevelData[currentLevel]["RADIUS"])
     else:
         self.ErrorWindow()
Ejemplo n.º 2
0
 def OnZoomMinus(self, evt):
     if self.canvas.getSocietyStatus() == "active":
         print "OnZoomMinus"
         currentLevel = z.getLevel() - 1
         z.setLevel(currentLevel)
         self.canvas.OrganizeAgents(boxWidth=z.viewLevelData[currentLevel]["BOXWIDTH"],
         boxHeight=z.viewLevelData[currentLevel]["BOXHEIGHT"],
         widthspacing=z.viewLevelData[currentLevel]["WIDTHSPACING"],
         heightspacing= z.viewLevelData[currentLevel]["HEIGHTSPACING"],
         fontSize=z.viewLevelData[currentLevel]["FONTSIZE"])
     else:
         self.ErrorWindow()