Revision: 8952
http://matplotlib.svn.sourceforge.net/matplotlib/?rev=8952&view=rev
Author: efiring
Date: 2011-02-06 07:47:43 +0000 (Sun, 06 Feb 2011)
Log Message:
-----------
backend_qt4.py: eliminate unnecessary import of Qt; closes [3108017]
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 2011-02-06
05:06:46 UTC (rev 8951)
+++ trunk/matplotlib/lib/matplotlib/backends/backend_qt4.py 2011-02-06
07:47:43 UTC (rev 8952)
@@ -18,7 +18,7 @@
import matplotlib.backends.qt4_editor.figureoptions as figureoptions
try:
- from PyQt4 import QtCore, QtGui, Qt
+ from PyQt4 import QtCore, QtGui
except ImportError:
raise ImportError("Qt4 backend requires that PyQt4 is installed.")
@@ -248,7 +248,7 @@
return TimerQT(*args, **kwargs)
def flush_events(self):
- Qt.qApp.processEvents()
+ QtGui.qApp.processEvents()
def start_event_loop(self,timeout):
FigureCanvasBase.start_event_loop_default(self,timeout)
@@ -272,13 +272,13 @@
#
http://old.nabble.com/Qt4-backend:-critical-bug-with-PyQt4-v4.6%2B-td26205716.html
# Once a release of Qt/PyQt is available without the bug, the version check
# below can be tightened further to only be applied in the necessary versions.
-if Qt.PYQT_VERSION_STR.startswith('4.6'):
+if QtCore.PYQT_VERSION_STR.startswith('4.6'):
class FigureWindow(QtGui.QMainWindow):
def __init__(self):
super(FigureWindow, self).__init__()
def closeEvent(self, event):
super(FigureWindow, self).closeEvent(event)
- self.emit(Qt.SIGNAL('destroyed()'))
+ self.emit(QtCore.SIGNAL('destroyed()'))
else:
FigureWindow = QtGui.QMainWindow
# /end pyqt hackish bugfix
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
The modern datacenter depends on network connectivity to access resources
and provide services. The best practices for maximizing a physical server's
connectivity to a physical network are well understood - see how these
rules translate into the virtual world?
http://p.sf.net/sfu/oracle-sfdevnlfb
_______________________________________________
Matplotlib-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-checkins