Skip to content

Commit

Permalink
Merge pull request #228 from prabhuramachandran/fix-minor-issue
Browse files Browse the repository at this point in the history
Fix minor issue with setting the timer callback.
  • Loading branch information
prabhuramachandran committed Jul 4, 2019
2 parents 436c78c + 44cd93c commit a4b9602
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pysph/tools/mayavi_viewer.py
Original file line number Diff line number Diff line change
Expand Up @@ -1124,7 +1124,10 @@ def _play_changed(self, value):
t.Start(1000*self.play_delay)
else:
t.Stop()
t.callable = self._timer_event
if hasattr(t, 'callback'):
t.callback = self._timer_event
else:
t.callable = self._timer_event

def _clear(self):
self.pa_names = []
Expand Down

0 comments on commit a4b9602

Please sign in to comment.