[Python-checkins] r63952 - in sandbox/trunk/ttk-gsoc/src: 2.x/ttk.py 3.x/ttk.py

guilherme.polo python-checkins at python.org
Thu Jun 5 03:13:59 CEST 2008


Author: guilherme.polo
Date: Thu Jun  5 03:13:58 2008
New Revision: 63952

Log:
Somehow I missed the "invoke" command for Ttk Button, added now.

Modified:
   sandbox/trunk/ttk-gsoc/src/2.x/ttk.py
   sandbox/trunk/ttk-gsoc/src/3.x/ttk.py

Modified: sandbox/trunk/ttk-gsoc/src/2.x/ttk.py
==============================================================================
--- sandbox/trunk/ttk-gsoc/src/2.x/ttk.py	(original)
+++ sandbox/trunk/ttk-gsoc/src/2.x/ttk.py	Thu Jun  5 03:13:58 2008
@@ -553,6 +553,11 @@
         Widget.__init__(self, master, "ttk::button", kw)
 
 
+    def invoke(self):
+        """Invokes the command associated with the button."""
+        return self.tk.call(self._w, "invoke")
+
+
 class Checkbutton(Widget):
     """Ttk Checkbutton widget which is either in on- or off-state."""
 

Modified: sandbox/trunk/ttk-gsoc/src/3.x/ttk.py
==============================================================================
--- sandbox/trunk/ttk-gsoc/src/3.x/ttk.py	(original)
+++ sandbox/trunk/ttk-gsoc/src/3.x/ttk.py	Thu Jun  5 03:13:58 2008
@@ -553,6 +553,11 @@
         Widget.__init__(self, master, "ttk::button", kw)
 
 
+    def invoke(self):
+        """Invokes the command associated with the button."""
+        return self.tk.call(self._w, "invoke")
+
+
 class Checkbutton(Widget):
     """Ttk Checkbutton widget which is either in on- or off-state."""
 


More information about the Python-checkins mailing list