We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c412e2e + a36be44 commit 532eda4Copy full SHA for 532eda4
src/_macosx.m
@@ -5241,6 +5241,16 @@ - (BOOL)closeButtonPressed
5241
return YES;
5242
}
5243
5244
+- (void)close
5245
+{
5246
+ [super close];
5247
+ NSArray *windowsArray = [NSApp windows];
5248
+ if([windowsArray count]==0) [NSApp stop: self];
5249
+ /* This is needed for show(), which should exit from [NSApp run]
5250
+ * after all windows are closed.
5251
+ */
5252
+}
5253
+
5254
- (void)dealloc
5255
{
5256
PyGILState_STATE gstate;
0 commit comments