[Python-checkins] r62990 - in sandbox/trunk/ttk-gsoc/Lib: lib-tk/Ttk.py tkinter/ttk.py

guilherme.polo python-checkins at python.org
Sat May 10 14:54:06 CEST 2008


Author: guilherme.polo
Date: Sat May 10 14:54:06 2008
New Revision: 62990

Log:
Forgot the method delete used by Treeview, wrapped now.

Modified:
   sandbox/trunk/ttk-gsoc/Lib/lib-tk/Ttk.py
   sandbox/trunk/ttk-gsoc/Lib/tkinter/ttk.py

Modified: sandbox/trunk/ttk-gsoc/Lib/lib-tk/Ttk.py
==============================================================================
--- sandbox/trunk/ttk-gsoc/Lib/lib-tk/Ttk.py	(original)
+++ sandbox/trunk/ttk-gsoc/Lib/lib-tk/Ttk.py	Sat May 10 14:54:06 2008
@@ -1060,6 +1060,12 @@
         return _val_or_dict(kw, self.tk.call, self._w, "column", column)
 
 
+    def delete(self, items):
+        """Delete all specified items and all their descendants. The root
+        item may not be deleted."""
+        self.tk.call(self._w, "delete", items)
+
+
     def detach(self, items):
         """Unlinks all of the specified items from the tree.
 

Modified: sandbox/trunk/ttk-gsoc/Lib/tkinter/ttk.py
==============================================================================
--- sandbox/trunk/ttk-gsoc/Lib/tkinter/ttk.py	(original)
+++ sandbox/trunk/ttk-gsoc/Lib/tkinter/ttk.py	Sat May 10 14:54:06 2008
@@ -1060,6 +1060,12 @@
         return _val_or_dict(kw, self.tk.call, self._w, "column", column)
 
 
+    def delete(self, items):
+        """Delete all specified items and all their descendants. The root
+        item may not be deleted."""
+        self.tk.call(self._w, "delete", items)
+
+
     def detach(self, items):
         """Unlinks all of the specified items from the tree.
 


More information about the Python-checkins mailing list