I'm trying to create and app that displays two db related trees and be
able to select for addition insertion and moving stuff around.
I've browsed the faq's the tree examples and I've gotten to the point
where I've created the widget with glad and I see two empty trees just
waiting to be filled up.
I'm trying to implement a method that will fill a tree by giving the
method the window instance ,the tree (text)I'm talking about and a
dictionary containing the data I want to show.
So I'm using
mytree(self.w,t,sons)
Let's take a look at mytree's constructor
def __init__(self,win,tree,sons):
print "win is %s tree is %s"%(win,tree)
combined="%s.%s"%('win',tree)
twin=eval(combined)
print twin
the output I get when I print twin is:
<GtkObject of type GtkTree at 81d7c30>
now all methods I try to use like connect ,append etc... are returned
with an error:
AttributeError: 'GtkObject' object has no attribute 'append'
The docs and examples do the connects and appends at this stage so I'm a
bit confused.
Anyhelp will be realy appriciated.
regards -
--
Lior Kesos , [EMAIL PROTECTED]
Aduva re.search("meaning",self)
============================
KISS - Keep It Simple Stupid.
_______________________________________________
pygtk mailing list [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/