Forum |  HardWare.fr | News | Articles | PC | S'identifier | S'inscrire | Shop Recherche
2812 connectés 

  FORUM HardWare.fr
  Programmation
  Python

  TIX tree et hlist

 


 Mot :   Pseudo :  
 
Bas de page
Auteur Sujet :

TIX tree et hlist

n°1424339
lipaika
Posté le 11-08-2006 à 13:37:35  profilanswer
 

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

mood
Publicité
Posté le 11-08-2006 à 13:37:35  profilanswer
 

n°1424345
masklinn
í dag viðrar vel til loftárása
Posté le 11-08-2006 à 13:41:38  profilanswer
 

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?
n°1424455
lipaika
Posté le 11-08-2006 à 15:39:54  profilanswer
 

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

n°1424484
masklinn
í dag viðrar vel til loftárása
Posté le 11-08-2006 à 15:58:58  profilanswer
 

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?

Aller à :
Ajouter une réponse
  FORUM HardWare.fr
  Programmation
  Python

  TIX tree et hlist

 

Sujets relatifs
[JSF] MyFaces - Composant treeRecherche sur les BSP Tree
kd-treekd-tree
Perte de puissance avec Tk::Treealgorithme de subdivision k-D-B tree
implémentation du VA_FILE et Pyramid-Tree[VB6] Pbe sur Tree View
menu arborescence (tree)Tree [JS + CSS]
Plus de sujets relatifs à : TIX tree et hlist


Copyright © 1997-2025 Groupe LDLC (Signaler un contenu illicite / Données personnelles)