Skip to content

New stlye qt calls #2382

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 8 commits into from
Sep 10, 2013
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
use new-style for PyQt as well as PySide
  • Loading branch information
tacaswell committed Sep 7, 2013
commit df3d8829c99f4ee4108b654e1b06121efd3e987c
5 changes: 1 addition & 4 deletions examples/user_interfaces/embedding_in_qt4.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,7 @@ class MyDynamicMplCanvas(MyMplCanvas):
def __init__(self, *args, **kwargs):
MyMplCanvas.__init__(self, *args, **kwargs)
timer = QtCore.QTimer(self)
if use_pyside:
timer.timeout.connect(self.update_figure)
else:
QtCore.QObject.connect(timer, QtCore.SIGNAL("timeout()"), self.update_figure)
timer.timeout.connect(self.update_figure)
timer.start(1000)

def compute_initial_figure(self):
Expand Down