Revision: 8255
          http://matplotlib.svn.sourceforge.net/matplotlib/?rev=8255&view=rev
Author:   ryanmay
Date:     2010-04-20 19:58:10 +0000 (Tue, 20 Apr 2010)

Log Message:
-----------
Use global import of PyQt4 instead of a local one.

Modified Paths:
--------------
    trunk/matplotlib/lib/matplotlib/backends/backend_qt4.py

Modified: trunk/matplotlib/lib/matplotlib/backends/backend_qt4.py
===================================================================
--- trunk/matplotlib/lib/matplotlib/backends/backend_qt4.py     2010-04-20 
19:43:01 UTC (rev 8254)
+++ trunk/matplotlib/lib/matplotlib/backends/backend_qt4.py     2010-04-20 
19:58:10 UTC (rev 8255)
@@ -98,18 +98,19 @@
         functions add_callback and remove_callback can be used.
     '''
     def __init__(self):
-        from PyQt4.QtCore import QObject, SIGNAL, QTimer
         TimerBase.__init__(self)
         
         # Create a new timer and connect the timeout() signal to the
         # _on_timer method.
-        self._timer = QTimer()
-        QObject.connect(self._timer, SIGNAL('timeout()'), self._on_timer)
+        self._timer = QtCore.QTimer()
+        QtCore.QObject.connect(self._timer, QtCore.SIGNAL('timeout()'),
+            self._on_timer)
 
     def __del__(self):
         # Probably not necessary in practice, but is good behavior to 
disconnect
         TimerBase.__del__(self)
-        QObject.disconnect(self._timer , SIGNAL('timeout()'), self._on_timer)
+        QtCore.QObject.disconnect(self._timer , QtCore.SIGNAL('timeout()'),
+            self._on_timer)
 
     def _timer_set_single_shot(self):
         self._timer.setSingleShot(self._single)


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

------------------------------------------------------------------------------
_______________________________________________
Matplotlib-checkins mailing list
Matplotlib-checkins@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-checkins

Reply via email to