Re: [Pyobjc-dev] import framework for newbie
Brought to you by:
ronaldoussoren
From: Wezzy <we...@ya...> - 2004-01-05 18:01:40
|
Il giorno 05/gen/04, alle 18:20, Bob Ippolito ha scritto: > > Do you mean: > > import objc > objc.loadBundle("WebKit",globals(),bundle_path="/System/Library/ > Frameworks/WebKit.framework") > del objc > ops my error > > You probably want: > > import WebKit > wb = WebKit.WebView.alloc().init() > > It's the same: >>> wb = WebKit.WebView.alloc().init() Traceback (most recent call last): File "<stdin>", line 1, in ? AttributeError: 'module' object has no attribute 'WebView' > > You shouldn't be getting that particular error. > What version of PyObjC and OS X are you using? 1.0 on Mac Os X 10.3.2 > I'm using a month old CVS version of PyObjC (Dec 03 2003) on OS X > 10.3.2 (7D24). Now i download the cvs version > Are you sure that you have WebKit installed? Is there *anything* in > the imported WebKit module -- dir(WebKit)? > Yes i'm sure. WebKit module is a file WebKit.py not a package in a directory > -bob Thanks for you quickly response. Wezzy |