def getNSWindowController(self): """ Return an *NSWindowController* for the *NSWindow* that this Vanilla object wraps, creating a one if needed. """ controller = self._window.windowController() if controller is None: controller = NSWindowController.alloc().initWithWindow_(self._window) return controller
def getNSWindowController(self): """ Return an *NSWindowController* for the *NSWindow* that this Vanilla object wraps, creating a one if needed. """ controller = self._window.windowController() if controller is None: controller = NSWindowController.alloc().initWithWindow_( self._window) return controller
def progress_window_show(self): self.showing_bubbles = False if not self.window_controller: self.window_controller = NSWindowController.alloc().initWithWindow_(CameraProgressWindow(self)) self.window_controller.showWindow_(None) NSApp().activateIgnoringOtherApps_(True)
def openPolygonPanel(self): if self.__polyPanelWindowController is None: _wc = NSWindowController.alloc().initWithWindow_(self.polygonPanel) self.__polyPanelWindowController = _wc self.__polyPanelWindowController.showWindow_(self)