Package pycocoa :: Module windows
[frames] | no frames]

Module windows

Types Window, MediaWindow, Screen, Style, wrapping ObjC NSWindow, etc.


Version: 18.04.26

Classes
  Screen
Screen Python Type, wrapping ObjC NSRect_t.
  Style
Window style mask constants.
  Window
Basic, base window Python Type, wrapping ObjC NSWindow.
  MediaWindow
Media window Python Type, wrapping ObjC NSWindow/NSView.
Functions
 
ns2Window(ns)
Get the Window instance for an ObjC NSWindow or NSNotification instance.
Variables
  NSWindowDelegate = ObjCClass('_NSWindowDelegate')
Function Details

ns2Window(ns)

 

Get the Window instance for an ObjC NSWindow or NSNotification instance.

Parameters:
  • ns - The ObjC instance (NS...).
Returns:
The window instance (Window).
Raises:
  • AssertionError - Mismatched instances.
  • AttributeError - Unexpected ns type.
  • TypeError - Invalid ns type.