[Pyobjc-dev] import framework for newbie
Brought to you by:
ronaldoussoren
From: Wezzy <we...@ya...> - 2004-01-05 17:01:54
|
Hi all, after reading docs about wrapping new framework i've made some test with my own framework, but i'm not able to import it. So i've tried with webkit framework (just for testing) but it doesn't work. This is my code: WebKit.py: import objc pyobjc.loadBundle("WebKit",globals(),bundle_path="/System/Library/ Frameworks/WebKit.framework") del objc inside the interpreter: import WebKit wb = WebKit.WebView() now i have an error, WebKit doesn't have WebView attributes. so i've tried with import inspect inspect.getmembers(WebKit,inspect.isclass) and it returns []. Where is my error ? Thanks a lot Wezzy |