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

Use appnope in qt and wx gui support from the terminal; closes #6189 #6321

Merged
merged 1 commit into from Aug 17, 2014

Conversation

efiring
Copy link
Contributor

@efiring efiring commented Aug 16, 2014

On Mavericks, the qt and wx gui support was unusable from the
ipython console in a terminal. Using nope() in enable_qt4 and
enable_wx, and reversing with nap() in disable_qt4 and disable_wx,
solves the problem.

…n#6189

On Mavericks, the qt and wx gui support was unusable from the
ipython console in a terminal.  Using nope() in enable_qt4 and
enable_wx, and reversing with nap() in disable_qt4 and disable_wx,
solves the problem.
@efiring
Copy link
Contributor Author

efiring commented Aug 16, 2014

I have tested this only with qt, not with wx.

@jenshnielsen
Copy link
Contributor

Confirming that this resolves the issue with both the wx and qt event loop integration.

from IPython.lib.inputhookwx import inputhook_wx
from IPython.external.appnope import nope
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this wants to be wrapped in a check for OS X 10.9, as in loop_wx (skip the kernel._ part, since that doesn't apply in inputhook).

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This check is already included in appnap.init; nope() and nap() are dummied out if not in OS X 10.9.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fair enough. I forgot I had done that.

@minrk
Copy link
Member

minrk commented Aug 16, 2014

This makes perfect sense. I made one comment about protecting the use of appnope to only OS X ≥ 10.9 like we do elsewhere, but otherwise AOK.

We do try to avoid whitespace-stripping commits, but this one is small enough that I don't mind.

@minrk minrk added this to the 2.3 milestone Aug 17, 2014
minrk added a commit that referenced this pull request Aug 17, 2014
Use appnope in qt and wx gui support from the terminal; closes #6189
@minrk minrk merged commit 9d6cfce into ipython:2.x Aug 17, 2014
@minrk
Copy link
Member

minrk commented Aug 17, 2014

Oh, crap. I didn't realize this was a PR against 2.x until too late. I shouldn't have merged it. We don't normally accept any PRs against 2.x, we only accept PRs against master, which we later backport to 2.x.

@minrk
Copy link
Member

minrk commented Aug 17, 2014

Opened against master as #6325.

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

Successfully merging this pull request may close these issues.

None yet

4 participants