[Pythonmac-SIG] AddressBook Question.
Bob Ippolito
bob at redivi.com
Tue May 17 02:06:42 CEST 2005
On May 16, 2005, at 7:56 PM, Joe Duhamel wrote:
> All,
> I know this is a novice question but I'm trying to create a new group
> using the python pyobjc module. I'm ure I've made a juvenile mistake
> but help would be appreciated.
>
>
> -Joe
>
> if undefined is None:
> undefined = ABGroup.alloc().init()
> undefined.setValueForProperty_("GroupName") = "UnDefined" **
> Causes
> obvious error.
> book.addGroup(undefined)
That's not even valid Python syntax!
undefined.setValue_forProperty_("GroupName", "UnDefined")
I suggest you read the PyObjC documentation...
-bob
More information about the Pythonmac-SIG
mailing list