Пример #1
0
 def destroy(self):
     #print "Window.destroy:", self ###
     self.hide()
     app = application()
     if app._ns_key_window is self:
         app._ns_key_window = None
     GWindow.destroy(self)
     #  We can't drop all references to the NSWindow yet, because this method
     #  can be called from its windowShouldClose: method, and allowing an
     #  NSWindow to be released while executing one of its own methods seems
     #  to be a very bad idea (Cocoa hangs). So we hide the NSWindow and store
     #  a reference to it in a global. It will be released the next time a
     #  window is closed and the global is re-used.
     global _ns_zombie_window
     _ns_zombie_window = self._ns_window
     self._ns_window.pygui_component = None
Пример #2
0
 def destroy(self):
     #print "Window.destroy:", self ###
     self.hide()
     app = application()
     if app._ns_key_window is self:
         app._ns_key_window = None
     GWindow.destroy(self)
     #  We can't drop all references to the NSWindow yet, because this method
     #  can be called from its windowShouldClose: method, and allowing an
     #  NSWindow to be released while executing one of its own methods seems
     #  to be a very bad idea (Cocoa hangs). So we hide the NSWindow and store
     #  a reference to it in a global. It will be released the next time a
     #  window is closed and the global is re-used.
     global _ns_zombie_window
     _ns_zombie_window = self._ns_window
     self._ns_window.pygui_component = None
Пример #3
0
 def destroy(self):
     self.hide()
     GWindow.destroy(self)
Пример #4
0
 def destroy(self):
     self.hide()
     GWindow.destroy(self)