예제 #1
0
 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
예제 #2
0
 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
예제 #3
0
 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)
예제 #5
0
 def openPolygonPanel(self):
     if self.__polyPanelWindowController is None:
         _wc = NSWindowController.alloc().initWithWindow_(self.polygonPanel)
         self.__polyPanelWindowController = _wc
     self.__polyPanelWindowController.showWindow_(self)