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

Method wm_iconbitmap

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

Set bitmap for the iconified widget to BITMAP. Return the bitmap if None is given. Under Windows, the DEFAULT parameter can be used to set the icon for the widget and any descendants that don't have an icon set explicitly. DEFAULT can be the relative path to a

(self, bitmap=None, default=None)

Source from the content-addressed store, hash-verified

2141 group = wm_group
2142
2143 def wm_iconbitmap(self, bitmap=None, default=None):
2144 """Set bitmap for the iconified widget to BITMAP. Return
2145 the bitmap if None is given.
2146
2147 Under Windows, the DEFAULT parameter can be used to set the icon
2148 for the widget and any descendants that don't have an icon set
2149 explicitly. DEFAULT can be the relative path to a .ico file
2150 (example: root.iconbitmap(default='myicon.ico') ). See Tk
2151 documentation for more information."""
2152 if default:
2153 return self.tk.call('wm', 'iconbitmap', self._w, '-default', default)
2154 else:
2155 return self.tk.call('wm', 'iconbitmap', self._w, bitmap)
2156
2157 iconbitmap = wm_iconbitmap
2158

Callers 1

mainFunction · 0.80

Calls 1

callMethod · 0.80

Tested by

no test coverage detected