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

Method wm_iconbitmap

Lib/tkinter/__init__.py:2333–2345  ·  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 .ico

(self, bitmap=None, default=None)

Source from the content-addressed store, hash-verified

2331 group = wm_group
2332
2333 def wm_iconbitmap(self, bitmap=None, default=None):
2334 """Set bitmap for the iconified widget to BITMAP. Return
2335 the bitmap if None is given.
2336
2337 Under Windows, the DEFAULT parameter can be used to set the icon
2338 for the widget and any descendants that don't have an icon set
2339 explicitly. DEFAULT can be the relative path to a .ico file
2340 (example: root.iconbitmap(default='myicon.ico') ). See Tk
2341 documentation for more information."""
2342 if default is not None:
2343 return self.tk.call('wm', 'iconbitmap', self._w, '-default', default)
2344 else:
2345 return self.tk.call('wm', 'iconbitmap', self._w, bitmap)
2346
2347 iconbitmap = wm_iconbitmap
2348

Callers 2

test_wm_iconbitmapMethod · 0.80
mainFunction · 0.80

Calls 1

callMethod · 0.45

Tested by 1

test_wm_iconbitmapMethod · 0.64