[ubuntu-art] [MeMaker] Can't figure it out...
Jason Brower
encompass at gmail.com
Fri Jan 11 04:39:56 GMT 2008
Yup
I have done that with get and set attr...
here is what I have done...
But it doesn't work... if you try it out...
Jason
On Thu, 2008-01-10 at 16:30 -0600, Gryc Ueusp wrote:
> Why not use `model.feat = gtk.ListStore(str, gtk.gdk.Pixbuf)`?
>
> Lines 8-62 scream to me to be one, maybe two classes with some iteration to
> set all the appropriate attributes. I see a LOT of duplication there, and
> that should be about 10 lines at most.
>
> And help(setattr) tells me it needs to be a string, not a variable. You
> should really re-evaluate your use of set/getattr. It doesnt really help
> readability...
>
> On Thursday 10 January 2008 4:40:35 am Jason Brower wrote:
> > http://pastebin.com/d394aac1d
> > I want to take all the code and put it in a loop with get and set attr
> > but I guess I am missing something. It tells me I need to declare
> > model... do I really?
> >
> > :(
> >
> > Jason Brower
> >
> > _______________________________________________
> > Discussion mailing list
> > Discussion at lists.memaker.org
> > http://lists.memaker.org/listinfo.cgi/discussion-memaker.org
>
>
>
> _______________________________________________
> Discussion mailing list
> Discussion at lists.memaker.org
> http://lists.memaker.org/listinfo.cgi/discussion-memaker.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: memaker.py
Type: text/x-python
Size: 22085 bytes
Desc: not available
Url : https://lists.ubuntu.com/archives/ubuntu-art/attachments/20080111/d10a4796/attachment-0001.py
More information about the ubuntu-art
mailing list