[Pythonmac-SIG] Using Python to edit resources...
dave@diddlysquat.f2s.com
dave@diddlysquat.f2s.com
Thu, 14 Jun 2001 03:30:47 +0000 (GMT)
Quoting Jack Jansen <jack@oratrix.nl>:
> Well, you're already well underway to *asking* the question a million
> times:-)
Sorry, something screwed up :-(. If this sends 4 messages now, I should
probably change email services.
>
> Look at the .data attribute:
> h = Res.Get1Resource(.....)
> print 'data as string:', h.data
>
> Accessing h.data does all the HLock() magic for you too, and you get a
> copy of
> the data. Assigning will work too.
Thank you. That helps me _immensely_. I'll put it in my code as soon as
possible.
Dave
-------------------------------------------------
Everyone should have http://www.freedom2surf.net/