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)
| 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 |