Changeset 3548
- Timestamp:
- Sep 7, 2006, 4:49:11 PM (18 years ago)
- Location:
- anuga_core/source/anuga/visualiser
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
anuga_core/source/anuga/visualiser/offline.py
r3538 r3548 26 26 for i in range(self.maxFrameNumber + 1): # maxFrameNumber is zero indexed. 27 27 self.vtk_heightQuantityCache.append({}) 28 29 self.paused = False 30 self.tk_root.after(100, self.animateForward) 28 31 29 32 def setup_grid(self): … … 129 132 130 133 def pauseResume(self): 131 print "Pause/Resume" 134 if self.paused is True: 135 self.tk_pauseResume.config(text="Pause") 136 self.paused = False 137 self.tk_root.after(100, self.animateForward) 138 else: 139 self.tk_pauseResume.config(text="Resume") 140 self.paused = True 132 141 133 142 def forward(self): … … 142 151 self.frameNumber = self.maxFrameNumber 143 152 self.redraw_quantities(True) 153 154 def animateForward(self): 155 if self.paused is not True: 156 self.forward() 157 self.tk_root.after(100, self.animateForward) -
anuga_core/source/anuga/visualiser/visualiser.py
r3547 r3548 27 27 self.vtk_polyData = {} 28 28 29 self.setup_gui() 30 29 31 def run(self): 30 self.setup_gui()31 32 self.setup_grid() 32 33 # Draw Height Quantities
Note: See TracChangeset
for help on using the changeset viewer.