Skip to content
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

print in QT event callback doesn't show up in ipython notebook. #5019

Closed
zhangruoyu opened this issue Feb 4, 2014 · 3 comments
Closed

print in QT event callback doesn't show up in ipython notebook. #5019

zhangruoyu opened this issue Feb 4, 2014 · 3 comments
Milestone

Comments

@zhangruoyu
Copy link

In an ipython notebook:

%gui qt
import time
import sys
from PyQt4 import QtGui

def onclick():
    print "clicked", time.clock()
    sys.stdout.flush()

button = QtGui.QPushButton("click me")
button.clicked.connect(onclick)
button.show()

click the button, there is nothing in the cell's output section, it works in IPython 1.1.0, but doesn't work in IPython 2.0.0-dev.

@hemanzur
Copy link

hemanzur commented May 7, 2014

Same thing here. It happens only in the notebook interface. Console works ok.
Had to downgrade to 1.2.1.

Any solutions, or bug reports ??

@minrk minrk added this to the 2.1 milestone May 7, 2014
@minrk
Copy link
Member

minrk commented May 7, 2014

This is fixed by #5668, which will be in 2.1 very soon.

@minrk minrk closed this as completed May 7, 2014
@hemanzur
Copy link

hemanzur commented May 8, 2014

Great !

Thanks,
Hachi

2014-05-07 17:43 GMT-04:00 Min RK notifications@github.com:

This is fixed by #5668 #5668,
which will be in 2.1 very soon.


Reply to this email directly or view it on GitHubhttps://github.com//issues/5019#issuecomment-42486930
.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants