Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Closed
Changes from all commits
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
Raises figures when issuing a blocking show() in macosx backend.
This is done by issuing an activateIgnoringOtherApps:YES on NSApp, in
the show() method of the macosx backend.
  • Loading branch information
gellule committed Jan 6, 2012
commit d743362f714a8b69c4b6ceb61f48347cdaf7bd30
5 changes: 4 additions & 1 deletion src/_macosx.m
Original file line number Diff line number Diff line change
Expand Up @@ -5552,7 +5552,10 @@ - (int)index
static PyObject*
show(PyObject* self)
{
if(nwin > 0) [NSApp run];
if(nwin > 0) {
[NSApp activateIgnoringOtherApps:YES];
[NSApp run];
}
Py_INCREF(Py_None);
return Py_None;
}
Expand Down