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


_______________________________________________
Pythonmac-SIG maillist  -  Pythonmac-SIG@python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig

Reply via email to