[Python-checkins] r67220 - sandbox/trunk/ttk-gsoc/Doc/library/ttk.rst

guilherme.polo python-checkins at python.org
Fri Nov 14 13:41:42 CET 2008


Author: guilherme.polo
Date: Fri Nov 14 13:41:41 2008
New Revision: 67220

Log:
Updated to match current method signatures


Modified:
   sandbox/trunk/ttk-gsoc/Doc/library/ttk.rst

Modified: sandbox/trunk/ttk-gsoc/Doc/library/ttk.rst
==============================================================================
--- sandbox/trunk/ttk-gsoc/Doc/library/ttk.rst	(original)
+++ sandbox/trunk/ttk-gsoc/Doc/library/ttk.rst	Fri Nov 14 13:41:41 2008
@@ -259,7 +259,7 @@
       *x* and *y* are pixel coordinates relative to the widget.
 
 
-   .. method:: instate(statespec[, callback=None[, *args[, **kwargs]]])
+   .. method:: instate(statespec[, callback=None[, *args[, **kw]]])
 
       Test the widget's state. If a callback is not specified, returns True
       if the widget state matches *statespec* and False otherwise. If callback
@@ -516,12 +516,12 @@
       omitted, returns the widget name of the currently selected pane.
 
 
-   .. method:: tab(tab_id, **kw)
+   .. method:: tab(tab_id[, option=None[, **kw]])
 
       Query or modify the options of the specific *tab_id*.
 
-      If no option is specified, returns a dictionary of the tab option values.
-      If one option is specified, returns the value of that option. Otherwise,
+      If *kw* is not given, returns a dict of the tab option values. If
+      *option* is specified, returns the value of that *option*. Otherwise,
       sets the options to the corresponding values.
 
 
@@ -863,13 +863,13 @@
       *item*'s children.
 
 
-   .. method:: column(column, **kw)
+   .. method:: column(column[, option=None[, **kw]])
 
       Query or modify the options for the specified *column*.
 
-      If no options are specified, returns a dictionary of option/value pairs.
-      If an option is specified with value None, returns the value of that
-      option. Otherwise, the options are updated with the specified values.
+      If *kw* is not given, returns a dict of the column option values. If
+      *option* is specified then the value for that *option* is returned.
+      Otherwise, sets the options to the corresponding values.
 
       The valid options/values are:
 
@@ -919,10 +919,14 @@
       the current focus item, or '' if there is none.
 
 
-   .. method:: heading(column, **kw)
+   .. method:: heading(column[, option=None[, **kw]])
 
       Query or modify the heading options for the specified *column*.
 
+      If *kw* is not given, returns a dict of the heading option values. If
+      *option* is specified then the value for that *option* is returned.
+      Otherwise, sets the options to the corresponding values.
+
       The valid options/values are:
 
       * text: text
@@ -1098,15 +1102,14 @@
       item's tags option are called.
 
 
-   .. method:: tag_configure(tagname, **kw)
+   .. method:: tag_configure(tagname[, option=None[, **kw]])
 
       Query or modify the options for the specified *tagname*.
 
-      If one or more option/value pairs are specified, sets the value of those
-      options for the specified tag. If a single option is specified with value
-      None, returns the value of that option (or the empty string if the option
-      has not been specified for tagname). With no additional arguments,
-      returns a dictionary of the option settings for *tagname*.
+      If *kw* is not given, returns a dict of the option settings for
+      *tagname*. If *option* is specified, returns the value for that *option*
+      for the specified *tagname*. Otherwise, sets the options to the
+      corresponding values for the given *tagname*.
 
 
    .. method:: tag_has(tagname[, item])


More information about the Python-checkins mailing list