[Avida-cvs] [avida-svn] r467 - branches/developers/avida-edward/source/python/AvidaGui2

avidaedward@myxo.css.msu.edu avidaedward at myxo.css.msu.edu
Mon Feb 6 12:17:39 PST 2006


Author: avidaedward
Date: 2006-02-06 15:17:39 -0500 (Mon, 06 Feb 2006)
New Revision: 467

Modified:
   branches/developers/avida-edward/source/python/AvidaGui2/pyOnePop_PetriDishCtrl.py
   branches/developers/avida-edward/source/python/AvidaGui2/to-do_list
Log:

- update to kaben's to-do list.
- when petri dish is rescaling, gradient scale says 'rescaling'.



Modified: branches/developers/avida-edward/source/python/AvidaGui2/pyOnePop_PetriDishCtrl.py
===================================================================
--- branches/developers/avida-edward/source/python/AvidaGui2/pyOnePop_PetriDishCtrl.py	2006-02-06 19:23:54 UTC (rev 466)
+++ branches/developers/avida-edward/source/python/AvidaGui2/pyOnePop_PetriDishCtrl.py	2006-02-06 20:17:39 UTC (rev 467)
@@ -16,6 +16,7 @@
   def __init__(self,parent = None,name = None,fl = 0):
     pyOnePop_PetriDishView.__init__(self,parent,name,fl)
     self.m_gradient_scale_view = pyGradientScaleView(self,"m_gradient_scale_ctrl")
+    self.m_gradient_scale_is_rescaling = False
 
   def construct(self, session_mdl):
     self.m_session_mdl = session_mdl
@@ -138,10 +139,17 @@
         self.m_gradient_scale_ctrl.setRange(min, max)
         self.m_gradient_scale_ctrl.activate(True)
         self.m_petri_dish_ctrl.setRange(min, max)
+        if (old_min, old_max) != (min, max):
+          self.m_gradient_scale_ctrl.setMapModeSlot(self.m_map_profile.getModeName(self.m_mode_index) + ' (rescaling)')
+          self.m_gradient_scale_is_rescaling = True
         # Force subsequent resets until valid range is obtained.
         if ((min, max) != (0, 0)):
           self.m_updater.reset(False)
         should_update_all = True
+      elif self.m_gradient_scale_is_rescaling:
+        self.m_gradient_scale_ctrl.setMapModeSlot(self.m_map_profile.getModeName(self.m_mode_index))
+        self.m_gradient_scale_ctrl.activate(True)
+        self.m_gradient_scale_is_rescaling = False
     else:
       self.m_gradient_scale_ctrl.setRange(0, 0)
       self.m_gradient_scale_ctrl.activate(True)

Modified: branches/developers/avida-edward/source/python/AvidaGui2/to-do_list
===================================================================
--- branches/developers/avida-edward/source/python/AvidaGui2/to-do_list	2006-02-06 19:23:54 UTC (rev 466)
+++ branches/developers/avida-edward/source/python/AvidaGui2/to-do_list	2006-02-06 20:17:39 UTC (rev 467)
@@ -51,8 +51,12 @@
 
 ************Kaben******************
 
-- toggle to see legend instruction names to colors?
-- toggle to see letters?
+- toggle to see legend instruction names to colors
+- toggle to see letters
+- animation of organism divide
+  - or, for now, some way of indicating that divide has occurred
+    - say, perhaps, just drawing a line at divide points when copy is
+      complete
 
 Priority High-
 -first step for Windows is that if python is installed, Avida-Ed can be downloaded and run(1/30/05)




More information about the Avida-cvs mailing list