On Wednesday 26 June 2002 01:06 pm, Christian Reis wrote:
> On Wed, Jun 26, 2002 at 12:43:06PM -0400, Gary Jaffe wrote:
> > The above works fine.  Then I tried something like
> >
> > editItem = itemFac.get_item("/File/_Save")
> >
> > but I got an 'AttributeError: get_item' on the first of these last 2
> > lines.
>
> Well, AttributeError menas that itemFac doesn't contain a get_item
> method. And it doesn't, because I think the proper name is get_widget,
> as you already know. :-)

I'm sorry that I didn't mention that one of my failed attempts was to 
substitute get_widget instead of get_item.  After receiving your reply, I 
discovered that my error was in using the underline char in the path 
specification, and get_widget was actually the correct method.  When I took 
the underline out, all worked well.

Thanks to both you and James for your assistance.  My pygtk program now both 
looks great and works great. :)

Gary
_______________________________________________
pygtk mailing list   [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/

Reply via email to