MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / winfo_fpixels

Method winfo_fpixels

tools/python-3.11.9-amd64/Lib/tkinter/__init__.py:1141–1145  ·  view source on GitHub ↗

Return the number of pixels for the given distance NUMBER (e.g. "3c") as float.

(self, number)

Source from the content-addressed store, hash-verified

1139 self.tk.call('winfo', 'exists', self._w))
1140
1141 def winfo_fpixels(self, number):
1142 """Return the number of pixels for the given distance NUMBER
1143 (e.g. "3c") as float."""
1144 return self.tk.getdouble(self.tk.call(
1145 'winfo', 'fpixels', self._w, number))
1146
1147 def winfo_geometry(self):
1148 """Return geometry string for this widget in the form "widthxheight+X+Y"."""

Callers

nothing calls this directly

Calls 2

getdoubleMethod · 0.80
callMethod · 0.80

Tested by

no test coverage detected