Patches item #1096231, was opened at 2005-01-05 05:09 Message generated for change (Settings changed) made by loewis You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1096231&group_id=5470
Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Tkinter Group: Python 2.3 >Status: Closed >Resolution: Accepted Priority: 5 Submitted By: John Fouhy (johnfouhy) Assigned to: Martin v. Löwis (loewis) Summary: Fix for wm_iconbitmap to allow .ico files under Windows. Initial Comment: Tk 8.4 adds a -default option to wm iconbitmap to better support Microsoft Windows. Here is the link: http://www.tcl.tk/man/tcl8.4/TkCmd/wm.htm#M18 This is the relevant information: "On the Windows operating system, an additional flag is supported: wm iconbitmap window ?-default? ?image?. If the -default flag is given, the icon is applied to all toplevel windows (existing and future) to which no other specific icon has yet been applied. In addition to bitmap image types, a full path specification to any file which contains a valid Windows icon is also accepted (usually .ico or .icr files), or any file for which the shell has assigned an icon. Tcl will first test if the file contains an icon, then if it has an assigned icon, and finally, if that fails, test for a bitmap." This patch modifies Tkinter.py so that wm_iconbitmap supports a 'default' keyword parameter which, if used, will make the appropriate Tk call. This allows you to change your Tkinter application icons under Windows with one line of code :-) (and no need for tkIcon, hakicon, etc) For the record: I am running Windows XP Professional SP2 and Python 2.3.4. ---------------------------------------------------------------------- >Comment By: Martin v. Löwis (loewis) Date: 2006-06-17 11:21 Message: Logged In: YES user_id=21627 Thanks for the patch. Committed as r46999. ---------------------------------------------------------------------- Comment By: Jan Claeys (janc13) Date: 2005-03-03 18:29 Message: Logged In: YES user_id=412240 I have successfully tested this with Python 2.3.5 & Python 2.4 on Windows 2000. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1096231&group_id=5470 _______________________________________________ Patches mailing list Patches@python.org http://mail.python.org/mailman/listinfo/patches