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

Module windows

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


Version: 18.05.04

Classes
  Screen
Screen Python Type, wrapping ObjC NSRect_t.
  Window
Basic, base window Python Type, wrapping ObjC NSWindow.
  WindowError
Window error.
  WindowStyleError
Window style error.
  MediaWindow
Media window Python Type, wrapping ObjC NSWindow/NSView.
Functions
 
windowStyles(*styles)
Return a combination of window styles, specified by name.
 
ns2Window(ns)
Get the Window instance for an ObjC NSWindow or NSNotification instance.
Variables
  WindowStyle = WindowStyle.Closable=2, .Miniaturizable=1<<2, .R...
Window style constants (mask).
  NSWindowDelegate = ObjCClass('_NSWindowDelegate')
Function Details

windowStyles(*styles)

 

Return a combination of window styles, specified by name.

Parameters:
  • styles - Style names (all positional), case-insensitive.
Returns:
Combined window styles (WindowStyles mask).
Raises:

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.

Variables Details

WindowStyle

Window style constants (mask).

Value:
WindowStyle.Closable=2, .Miniaturizable=1<<2, .Resizable=1<<3, .Titled\
=1, .Typical=15, .Utility=1<<4