@@ -1955,6 +1955,37 @@ Base and mixin classes
19551955 color change when the mouse passes over a slider).
19561956 Return the resulting setting.
19571957
1958+ .. method :: tk_appname(name=None)
1959+
1960+ Query or set the name used to communicate with this application through
1961+ the ``send `` command.
1962+ With no argument, return the current name; otherwise change it to *name *
1963+ and return the actual name set, which may have a suffix appended to keep
1964+ it unique among the applications on the display.
1965+
1966+ .. versionadded :: next
1967+
1968+ .. method :: tk_useinputmethods(boolean=None, *, displayof=0)
1969+
1970+ Query or set whether Tk uses the X Input Methods (XIM) for filtering
1971+ events, and return the resulting state.
1972+ This is significant only on X11; if XIM support is not available it
1973+ always returns ``False ``.
1974+
1975+ .. versionadded :: next
1976+
1977+ .. method :: tk_caret(*, x=None, y=None, height=None)
1978+
1979+ Set or query the caret location for the widget's display.
1980+ The caret is the per-display insertion position used for global focus
1981+ indication (for accessibility) and for placing the input method
1982+ (XIM or IME) window.
1983+ With no argument, return the current location as a dictionary with the
1984+ keys ``'x' ``, ``'y' `` and ``'height' ``; otherwise update the given
1985+ coordinates.
1986+
1987+ .. versionadded :: next
1988+
19581989 .. method :: tk_scaling(number=None, *, displayof=0)
19591990
19601991 Query or set the scaling factor used by Tk to convert between physical
@@ -4813,6 +4844,8 @@ Widget classes
48134844 is the initial choice, and *values * are the remaining menu entries.
48144845 The keyword argument *command * may be given a callback that is invoked with
48154846 the selected value, and the keyword argument *name * sets the Tk widget name.
4847+ Other keyword arguments are passed to the underlying :class: `Menubutton `
4848+ and may override its default appearance.
48164849
48174850 .. method :: destroy()
48184851
@@ -4821,6 +4854,9 @@ Widget classes
48214854 .. versionchanged :: 3.14
48224855 Added support for the *name * keyword argument.
48234856
4857+ .. versionchanged :: next
4858+ Other :class: `Menubutton ` options can now be passed as keyword arguments.
4859+
48244860
48254861
48264862.. class :: PanedWindow(master=None, cnf={}, **kw)
@@ -6151,7 +6187,7 @@ Image classes
61516187
61526188
61536189 .. method :: data(format=None, *, from_coords=None, background=None, \
6154- grayscale=False)
6190+ grayscale=False, metadata=None )
61556191
61566192 Return the image data.
61576193
@@ -6175,16 +6211,27 @@ Image classes
61756211 If *grayscale * is true, the data does not contain color information; all
61766212 pixel data is transformed into grayscale.
61776213
6214+ *metadata * is a dictionary passed to the image format driver.
6215+ It requires Tcl/Tk 9.0 or newer.
6216+
61786217 .. versionadded :: 3.13
61796218
6219+ .. versionchanged :: next
6220+ Added the *metadata * parameter.
61806221
6181- .. method :: get(x, y)
6222+
6223+ .. method :: get(x, y, *, withalpha=False)
61826224
61836225 Return the color of the pixel at coordinates (*x *, *y *) as an
61846226 ``(r, g, b) `` tuple of three integers between 0 and 255, representing the
61856227 red, green and blue components respectively.
6228+ If *withalpha * is true, the returned tuple has a fourth element giving
6229+ the alpha (opacity) value of the pixel.
6230+
6231+ .. versionchanged :: next
6232+ Added the *withalpha * parameter, which requires Tcl/Tk 9.0 or newer.
61866233
6187- .. method :: put(data, to=None)
6234+ .. method :: put(data, to=None, *, format=None, metadata=None )
61886235
61896236 Set pixels of the image to the colors given in *data *, which must be a
61906237 string or a nested sequence of horizontal rows of pixel colors (for
@@ -6197,13 +6244,25 @@ Image classes
61976244 bottom-right corner, of the region.
61986245 The default position is ``(0, 0) ``.
61996246
6247+ *format * specifies the format of the image *data *, so that only image
6248+ file format handlers whose names begin with it are tried.
6249+
6250+ *metadata * is a dictionary passed to the image format driver.
6251+ It requires Tcl/Tk 9.0 or newer.
6252+
6253+ .. versionchanged :: next
6254+ Added the *format * and *metadata * parameters.
6255+
62006256 .. method :: read(filename, format=None, *, from_coords=None, to=None, \
6201- shrink=False)
6257+ shrink=False, metadata=None )
62026258
62036259 Read image data from the file named *filename * into the image.
62046260
62056261 *format * specifies the format of the image data in the file.
62066262
6263+ *metadata * is a dictionary passed to the image format driver.
6264+ It requires Tcl/Tk 9.0 or newer.
6265+
62076266 *from_coords * specifies a rectangular sub-region of the image file data
62086267 to be copied to the destination image.
62096268 It must be a tuple or a list of 1 to 4 integers ``(x1, y1, x2, y2) ``.
@@ -6224,6 +6283,9 @@ Image classes
62246283
62256284 .. versionadded :: 3.13
62266285
6286+ .. versionchanged :: next
6287+ Added the *metadata * parameter.
6288+
62276289
62286290 .. method :: subsample(x, y='', *, from_coords=None)
62296291
@@ -6256,7 +6318,7 @@ Image classes
62566318
62576319
62586320 .. method :: write(filename, format=None, from_coords=None, *, \
6259- background=None, grayscale=False)
6321+ background=None, grayscale=False, metadata=None )
62606322
62616323 Write image data from the image to the file named *filename *.
62626324
@@ -6278,9 +6340,15 @@ Image classes
62786340 If *grayscale * is true, the data does not contain color information; all
62796341 pixel data is transformed into grayscale.
62806342
6343+ *metadata * is a dictionary passed to the image format driver.
6344+ It requires Tcl/Tk 9.0 or newer.
6345+
62816346 .. versionchanged :: 3.13
62826347 Added the *background * and *grayscale * parameters.
62836348
6349+ .. versionchanged :: next
6350+ Added the *metadata * parameter.
6351+
62846352
62856353 .. method :: zoom(x, y='', *, from_coords=None)
62866354
0 commit comments