Exemplo n.º 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
Exemplo n.º 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
Exemplo n.º 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)
Exemplo n.º 5
0
 def openPolygonPanel(self):
     if self.__polyPanelWindowController is None:
         _wc = NSWindowController.alloc().initWithWindow_(self.polygonPanel)
         self.__polyPanelWindowController = _wc
     self.__polyPanelWindowController.showWindow_(self)