[Pyobjc-dev] NSWindow
Brought to you by:
ronaldoussoren
From: Thomas C. <tho...@me...> - 2011-06-29 21:24:05
|
Hello, I'm starting with PyObjC and am having some trouble creating windows I am not a beginner at either python or cocoa by the way. Here is what i am trying (both with macports python 2.6 and builtin python 2.6) on 10.6.8 from AppKit import * a=NSWindow.alloc().init() simply this returns an error: Wed Jun 29 16:23:09 TCi7.local python[10060] <Error>: kCGErrorInvalidConnection: CGSGetCurrentCursorLocation: Invalid connection Wed Jun 29 16:23:09 TCi7.local python[10060] <Error>: kCGErrorInvalidConnection: CGSNewWindowWithOpaqueShape: Invalid connection Traceback (most recent call last): File "<stdin>", line 1, in <module> objc.error: NSInternalInconsistencyException - Error (1002) creating CGSWindow Would anyone have any recommendations? T. |