8000 use new-style for PyQt as well as PySide · matplotlib/matplotlib@df3d882 · GitHub
[go: up one dir, main page]

Skip to content

Commit df3d882

Browse files
committed
use new-style for PyQt as well as PySide
1 parent 1c649f5 commit df3d882

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

examples/user_interfaces/embedding_in_qt4.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -64,10 +64,7 @@ class MyDynamicMplCanvas(MyMplCanvas):
6464
def __init__(self, *args, **kwargs):
6565
MyMplCanvas.__init__(self, *args, **kwargs)
6666
timer = QtCore.QTimer(self)
67-
if use_pyside:
68-
timer.timeout.connect(self.update_figure)
69-
else:
70-
QtCore.QObject.connect(timer, QtCore.SIGNAL("timeout()"), self.update_figure)
67+
timer.timeout.connect(self.update_figure)
7168
timer.start(1000)
7269

7370
def compute_initial_figure(self):

0 commit comments

Comments
 (0)
0