TIX tree et hlist

TIX tree et hlist - Python - Programmation

Marsh Posté le 11-08-2006 à 13:37:35    

Bonjour,  
 
j'ai crée un arbre de visualisation en python en initialisant une hlist. J'aimerais pouvoir effacer la liste pour la changer, mais malgré les libraries présentes sur le site tix.sourceforget.net, je n'arrive pas à le faire et  comprend pas comment les utiliser.
 
en voici un extrait :  
$hlist->delete(option, entryPath)  
Delete one or more list entries. option may be one of the following:  
all
Delete all entries in the HList. In this case the entryPath does not need to be specified.  
 
 
self.listeBase = self.tree_base.subwidget_list['hlist']
self.listeBase.configure(fg='brown')
self.listeBase.configure(separator="/" )
self.listeBase.add("/NEW_TABLE",text="Tables crées" )
self.listeBase.add("/TABLES",text="Tables modifiées" )
self.listeBase.add("/SUP_TABLE",text="Tables supprimées" )self.listeBase.add("/",text="Base" )
#...
 
pour supprimer les éléments de la liste j'utilise :  
self.listeBase.delete(all)
 
mais j'ai cette erreur :  
 File "C:\Python24\lib\lib-tk\Tix.py", line 326, in __getattr__
    raise AttributeError, name

 
je vous remercie par avance

Reply

Marsh Posté le 11-08-2006 à 13:37:35   

Reply

Marsh Posté le 11-08-2006 à 13:41:38    

Ce serait ptet plus simple si tu utilisais des docs pour le port Python de Tix [:pingouino]

Code :
  1. self.listBase.delete_all()


---------------
I mean, true, a cancer will probably destroy its host organism. But what about the cells whose mutations allow them to think outside the box by throwing away the limits imposed by overbearing genetic regulations? Isn't that a good thing?
Reply

Marsh Posté le 11-08-2006 à 15:39:54    

ah je te remercie, pourrais tu m'indiquer stp un lien où je puisse avoir plus de doc...
merci bcp

Reply

Marsh Posté le 11-08-2006 à 15:58:58    

http://www.google.fr/search?q=Tix+ [...] r:official [:pingouino]


---------------
I mean, true, a cancer will probably destroy its host organism. But what about the cells whose mutations allow them to think outside the box by throwing away the limits imposed by overbearing genetic regulations? Isn't that a good thing?
Reply

Sujets relatifs:

Leave a Replay

Make sure you enter the(*)required information where indicate.HTML code is not allowed