Hi Jesse, 
              thanks for taking the time and effort to reply to me. After 
weeks of trying to wracking my head and pretty much filling this board with 
my pleas for help I think realized my problem. 
  
              All along I've thought that the Node class was meant only as 
a helper class for the Model to condense its commands so I kept trying to 
get information about my node via the model class functions which I 
probably couldn't get anyway since the information of the Nodes instances 
created are already accessible through their own class methods. It's just 
that I got my logic about retrieving the information I wanted turned 
around, that's why I couldn't get my commands to work and didn't understand 
the errors. 

            I was trying to get the children of the main root through the 
rowCount method so I can compare it with new row entries to see if there 
were a duplicate and kept trying to accomplish that via this method in my 
QAbstractItemView

            def rowCount(self, parent):

            if not parent.isValid():
                parentNode=self._rootNode
            else:
                parentNode = parent.internalPointer()


            return parentNode.childCount()

When I could have simply just get it like this - 
self._model._rootNode.childList(). The childList method in my node class 
being like this     
            def childList(self):
                  for child in range(len(self._children)):
                        print self._children[child].fullName()

It's a very silly mistake to have made and I can't imagine why I had 
thought it was so complex. I hope my describing my amateur problem here 
would help any new comers to PyQt. 

-- 
You received this message because you are subscribed to the Google Groups 
"Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/python_inside_maya/76a22eea-d814-4eba-8cb4-4cba0221668d%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to