On Thursday 21 October 2010 10:10 PM, Vitaly Polisky wrote: > Hello! > Some time ago I asked on the mayavi-mailinglist about a possibility of > re-reading data by mayavi2. I was recommended to see the poll_file.py > program. In fact, I've already seen this script and programed my own > one. But both don't work. I have a problem with Timer. How does it work > and how can I correctly use it?
Well there was a bug in the poll_file.py file that was recently fixed. You basically need to save a reference to the timer, if not when the timer variable goes out of scope it is turned off. To fix this you should change it as shown in the current version here: https://svn.enthought.com/enthought/browser/Mayavi/trunk/examples/mayavi/interactive/poll_file.py > Does mayavi2 have a re-reading button like mayavi? No it does not currently but it should not be too hard to do. This is untested but you basically need to call self.reader.update() and self.update_data(). cheers, prabhu ------------------------------------------------------------------------------ Nokia and AT&T present the 2010 Calling All Innovators-North America contest Create new apps & games for the Nokia N8 for consumers in U.S. and Canada $10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store http://p.sf.net/sfu/nokia-dev2dev _______________________________________________ MayaVi-users mailing list MayaVi-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mayavi-users