mirror of
https://github.com/python/cpython.git
synced 2025-11-25 12:44:13 +00:00
Patch #1096231: Add default argument to wm_iconbitmap.
This commit is contained in:
parent
337487e3b8
commit
5ecad9ca13
3 changed files with 15 additions and 3 deletions
|
|
@ -1500,9 +1500,18 @@ class Wm:
|
||||||
the group leader of this widget if None is given."""
|
the group leader of this widget if None is given."""
|
||||||
return self.tk.call('wm', 'group', self._w, pathName)
|
return self.tk.call('wm', 'group', self._w, pathName)
|
||||||
group = wm_group
|
group = wm_group
|
||||||
def wm_iconbitmap(self, bitmap=None):
|
def wm_iconbitmap(self, bitmap=None, default=None):
|
||||||
"""Set bitmap for the iconified widget to BITMAP. Return
|
"""Set bitmap for the iconified widget to BITMAP. Return
|
||||||
the bitmap if None is given."""
|
the bitmap if None is given.
|
||||||
|
|
||||||
|
Under Windows, the DEFAULT parameter can be used to set the icon
|
||||||
|
for the widget and any descendents that don't have an icon set
|
||||||
|
explicitely. DEFAULT can be the relative path to a .ico file
|
||||||
|
(example: root.iconbitmap(default='myicon.ico') ). See Tk
|
||||||
|
documentation for more information."""
|
||||||
|
if default:
|
||||||
|
return self.tk.call('wm', 'iconbitmap', self._w, '-default', default)
|
||||||
|
else:
|
||||||
return self.tk.call('wm', 'iconbitmap', self._w, bitmap)
|
return self.tk.call('wm', 'iconbitmap', self._w, bitmap)
|
||||||
iconbitmap = wm_iconbitmap
|
iconbitmap = wm_iconbitmap
|
||||||
def wm_iconify(self):
|
def wm_iconify(self):
|
||||||
|
|
|
||||||
|
|
@ -205,6 +205,7 @@ Nils Fischbeck
|
||||||
Frederik Fix
|
Frederik Fix
|
||||||
Hernán Martínez Foffani
|
Hernán Martínez Foffani
|
||||||
Doug Fort
|
Doug Fort
|
||||||
|
John Fouhy
|
||||||
Martin Franklin
|
Martin Franklin
|
||||||
Robin Friedrich
|
Robin Friedrich
|
||||||
Ivan Frohne
|
Ivan Frohne
|
||||||
|
|
|
||||||
|
|
@ -163,6 +163,8 @@ Extension Modules
|
||||||
Library
|
Library
|
||||||
-------
|
-------
|
||||||
|
|
||||||
|
- Patch #1096231: Add ``default`` argument to Tkinter.Wm.wm_iconbitmap.
|
||||||
|
|
||||||
- Patch #763580: Add name and value arguments to Tkinter variable
|
- Patch #763580: Add name and value arguments to Tkinter variable
|
||||||
classes.
|
classes.
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue