[wxPython] pyTree

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[wxPython] pyTree

alexander smishlajev-3
hello all!

just for your interest: the addition of one line to pyTree.py makes
pyTree look even more exciting.  (didn't i break something?)

*** pyTree.py.orig Thu Apr 29 20:28:46 1999
--- pyTree.py Tue Oct 05 17:25:18 1999
***************
*** 113,118 ****
--- 113,119 ----
          item = event.GetItem()
          obj = self.GetPyData( item )
          lst = dir(obj)
+         if hasattr(obj, "__class__"): lst.insert(0, "__class__")
          for key in lst:
              new_obj = getattr(obj,key)
              new_item = self.AppendItem( item, key, -1, -1,

best wishes,
alex.


_______________________________________________
wxPython-users maillist  -  [hidden email]
http://starship.python.net/mailman/listinfo/wxpython-users