From: <ry...@us...> - 2010-06-30 16:31:29
|
Revision: 8478 http://matplotlib.svn.sourceforge.net/matplotlib/?rev=8478&view=rev Author: ryanmay Date: 2010-06-30 16:31:23 +0000 (Wed, 30 Jun 2010) Log Message: ----------- Force timer interval to int. This silences an exception for Tk and a warning from GTK when a float is given. Modified Paths: -------------- trunk/matplotlib/lib/matplotlib/backend_bases.py Modified: trunk/matplotlib/lib/matplotlib/backend_bases.py =================================================================== --- trunk/matplotlib/lib/matplotlib/backend_bases.py 2010-06-29 21:44:19 UTC (rev 8477) +++ trunk/matplotlib/lib/matplotlib/backend_bases.py 2010-06-30 16:31:23 UTC (rev 8478) @@ -944,6 +944,9 @@ return self._interval def _set_interval(self, interval): + # Force to int since none of the backends actually support fractional + # milliseconds, and some error or give warnings. + interval = int(interval) self._interval = interval self._timer_set_interval() This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |