MCPcopy Index your code
hub / github.com/python/cpython / winfo_visualsavailable

Method winfo_visualsavailable

Lib/tkinter/__init__.py:1421–1430  ·  view source on GitHub ↗

Return a list of all visuals available for the screen of this widget. Each item in the list consists of a visual name (see winfo_visual), a depth and if includeids is true is given also the X identifier.

(self, includeids=False)

Source from the content-addressed store, hash-verified

1419 return self.tk.call('winfo', 'visualid', self._w)
1420
1421 def winfo_visualsavailable(self, includeids=False):
1422 """Return a list of all visuals available for the screen
1423 of this widget.
1424
1425 Each item in the list consists of a visual name (see winfo_visual), a
1426 depth and if includeids is true is given also the X identifier."""
1427 data = self.tk.call('winfo', 'visualsavailable', self._w,
1428 'includeids' if includeids else None)
1429 data = [self.tk.splitlist(x) for x in self.tk.splitlist(data)]
1430 return [self.__winfo_parseitem(x) for x in data]
1431
1432 def __winfo_parseitem(self, t):
1433 """Internal function."""

Callers

nothing calls this directly

Calls 3

__winfo_parseitemMethod · 0.95
splitlistMethod · 0.80
callMethod · 0.45

Tested by

no test coverage detected