Commits

Ronald Oussoren committed dce7993

Update __init__.py files with additional content from the original files

Comments (0)

Files changed (5)

pyobjc-framework-Quartz/Lib/Quartz/CoreGraphics/__init__.py

        'objc': objc,
     }, ( CoreFoundation,))
 
-import Quartz.CoreGraphics._callbacks
-import Quartz.CoreGraphics._doubleindirect
-import Quartz.CoreGraphics._sortandmap
-import Quartz.CoreGraphics._coregraphics
-import Quartz.CoreGraphics._contextmanager
+
+def _load(mod):
+    import Quartz
+    Quartz.CoreGraphics = mod
+
+    import Quartz.CoreGraphics._callbacks as m
+    for nm in dir(m):
+        setattr(mod, nm, getattr(m, nm))
+    import Quartz.CoreGraphics._doubleindirect as m
+    for nm in dir(m):
+        setattr(mod, nm, getattr(m, nm))
+    import Quartz.CoreGraphics._sortandmap as m
+    for nm in dir(m):
+        setattr(mod, nm, getattr(m, nm))
+    import Quartz.CoreGraphics._coregraphics as m
+    for nm in dir(m):
+        setattr(mod, nm, getattr(m, nm))
+    import Quartz.CoreGraphics._contextmanager as m
+    for nm in dir(m):
+        setattr(mod, nm, getattr(m, nm))
+
+    mod.setCGPathElement(mod.CGPathElement)
+    del mod.setCGPathElement
+
+    # a #define
+    mod.kCGEventFilterMaskPermitAllEvents = (
+                    mod.kCGEventFilterMaskPermitLocalMouseEvents | 
+                    mod.kCGEventFilterMaskPermitLocalKeyboardEvents | 
+                    mod.kCGEventFilterMaskPermitSystemDefinedEvents)
+
+    def CGEventMaskBit(eventType):
+        return (1 << eventType)
+    mod.CGEventMaskBit = CGEventMaskBit
+
+
+    # Some pseudo-constants
+    mod.kCGBaseWindowLevel = mod.CGWindowLevelForKey(mod.kCGBaseWindowLevelKey)
+    mod.kCGMinimumWindowLevel = mod.CGWindowLevelForKey(mod.kCGMinimumWindowLevelKey)
+    mod.kCGDesktopWindowLevel = mod.CGWindowLevelForKey(mod.kCGDesktopWindowLevelKey)
+    mod.kCGDesktopIconWindowLevel = mod.CGWindowLevelForKey(mod.kCGDesktopIconWindowLevelKey)
+    mod.kCGBackstopMenuLevel = mod.CGWindowLevelForKey(mod.kCGBackstopMenuLevelKey)
+    mod.kCGNormalWindowLevel = mod.CGWindowLevelForKey(mod.kCGNormalWindowLevelKey)
+    mod.kCGFloatingWindowLevel = mod.CGWindowLevelForKey(mod.kCGFloatingWindowLevelKey)
+    mod.kCGTornOffMenuWindowLevel = mod.CGWindowLevelForKey(mod.kCGTornOffMenuWindowLevelKey)
+    mod.kCGDockWindowLevel = mod.CGWindowLevelForKey(mod.kCGDockWindowLevelKey)
+    mod.kCGMainMenuWindowLevel = mod.CGWindowLevelForKey(mod.kCGMainMenuWindowLevelKey)
+    mod.kCGStatusWindowLevel = mod.CGWindowLevelForKey(mod.kCGStatusWindowLevelKey)
+    mod.kCGModalPanelWindowLevel = mod.CGWindowLevelForKey(mod.kCGModalPanelWindowLevelKey)
+    mod.kCGPopUpMenuWindowLevel = mod.CGWindowLevelForKey(mod.kCGPopUpMenuWindowLevelKey)
+    mod.kCGDraggingWindowLevel = mod.CGWindowLevelForKey(mod.kCGDraggingWindowLevelKey)
+    mod.kCGScreenSaverWindowLevel = mod.CGWindowLevelForKey(mod.kCGScreenSaverWindowLevelKey)
+    mod.kCGCursorWindowLevel = mod.CGWindowLevelForKey(mod.kCGCursorWindowLevelKey)
+    mod.kCGOverlayWindowLevel = mod.CGWindowLevelForKey(mod.kCGOverlayWindowLevelKey)
+    mod.kCGHelpWindowLevel = mod.CGWindowLevelForKey(mod.kCGHelpWindowLevelKey)
+    mod.kCGUtilityWindowLevel = mod.CGWindowLevelForKey(mod.kCGUtilityWindowLevelKey)
+    mod.kCGAssistiveTechHighWindowLevel = mod.CGWindowLevelForKey(mod.kCGAssistiveTechHighWindowLevelKey)
+    mod.kCGMaximumWindowLevel = mod.CGWindowLevelForKey(mod.kCGMaximumWindowLevelKey)
+
+    mod.CGSetLocalEventsFilterDuringSupressionState = mod.CGSetLocalEventsFilterDuringSuppressionState
+
+_load(mod)

pyobjc-framework-Quartz/Lib/Quartz/CoreVideo/__init__.py

        'objc': objc,
     }, ( CoreFoundation, ))
 
-import Quartz.CoreVideo._CVPixelBuffer
+def _load(mod):
+    import Quartz
+    Quartz.CoreVideo = mod
+    import Quartz.CoreVideo._CVPixelBuffer as m
+    for nm in dir(m):
+        setattr(mod, nm, getattr(m, nm))
+_load(mod)

pyobjc-framework-Quartz/Lib/Quartz/ImageKit/__init__.py

 import sys
 import objc
 import Cocoa
-import Quartz.QuartzCore
 
 from Quartz.ImageKit import _metadata
 
        '__doc__': __doc__,
        '__path__': __path__,
        'objc': objc,
-    }, ( Cocoa, Quartz.QuartzCore,))
+    }, ( Cocoa, ))

pyobjc-framework-Quartz/Lib/Quartz/QuartzCore/__init__.py

 '''
 import sys
 import objc
-import Quartz.CoreVideo
 import Foundation
 
 from Quartz.QuartzCore import _metadata
        '__doc__': __doc__,
        '__path__': __path__,
        'objc': objc,
-    }, ( Quartz.CoreVideo, Foundation,))
+    }, ( Foundation,))

pyobjc-framework-Quartz/Lib/Quartz/QuickLookUI/__init__.py

 import sys
 import objc
 import Cocoa
-#import QuickLook
 
 from Quartz.QuickLookUI import _metadata
 
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.