Hi,

 

I am trying to set images to the object tree (dTreeView) in the Class
Designer.

I use the following code:

 

            tr = self.getObjectByRegID("tree")

            tr.addImage("book1.jpg", 1) 

            tr.setNodeImg("Termékek", 1, which='normal')

 

"Termékek" above is the name of one of the nodes in the object tree.

When running the Form I get this error message:

 

    self.SetItemImage(node.itemID, imgIdx, whichdict[which.lower()])

AttributeError: 'str' object has no attribute 'itemID'

 

I cannot find out how the node should be referenced in the method:

setNodeImg(self, node, imgKey, which='normal')

 

Miklós Martinecz



--- StripMime Report -- processed MIME parts ---
multipart/alternative
  text/plain (text body -- kept)
  text/html
---
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users
Searchable Archives: http://leafe.com/archives/search/dabo-users
This message: 
http://leafe.com/archives/byMID/!~!uenerkvcmdkaaqacaaaaaaaaaaaaaaaaabgaaaaaaaaackgpanngp0urgxvyyklpm8kaaaaqaaaaysbmok2x+kamhcu+l7agyaeaa...@upcmail.hu

Reply via email to