From: Christoph G. <cg...@uc...> - 2009-07-12 00:11:05
|
Index: lib/matplotlib/backends/backend_gtk.py =================================================================== --- lib/matplotlib/backends/backend_gtk.py (revision 7257) +++ lib/matplotlib/backends/backend_gtk.py (working copy) @@ -1148,7 +1148,7 @@ # versions of pygtk, so we have to use a PNG file instead. try: - if gtk.pygtk_version < (2, 8, 0): + if gtk.pygtk_version < (2, 8, 0) or sys.platform == 'win32': icon_filename = 'matplotlib.png' else: icon_filename = 'matplotlib.svg' --Christoph On 07/11/2009 06:39, John Hunter wrote: > On Mon, Jul 6, 2009 at 9:35 PM, Christoph Gohlke<cg...@uc...> wrote: >> Hi Steve, >> >> matplotlib-0.98.5.3.win32-py2.6.exe was compiled without support for GTK. >> >> If you don't mind trying, I have a build of the matplotlib trunk >> available on my homepage that has GTK support enabled: >> >> http://www.lfd.uci.edu/~gohlke/#pythonlibs >> >> It should work with the PyGTK 2.12 Windows binaries from >> http://www.pygtk.org/downloads.html. >> >> SVG support seems broken: the window.set_icon_from_file() function in >> backend_gtk.py will raise an exception, not recognizing SVG files. The >> PNG icon works. >> > > Christoph: could you look into a patch that uses png for the icon for win32/gtk? > > Thanks, > JDH > > |