From: Steve C. <ste...@ya...> - 2004-08-10 02:32:06
|
On Tue, 2004-08-10 at 00:55, John Hunter wrote: > Also, Steve, we might be better off here catching *all* exceptions > rather than just the gobject error. Darren, would you test to see if > this works > > > # set icon used when windows are minimized > if gtk.pygtk_version >= (2,2,0): > basedir = matplotlib.rcParams['datapath'] > fname = os.path.join(basedir, 'matplotlib.svg') > try: gtk.window_set_default_icon_from_file (fname) > except: print >>sys.stderr, 'Could not load matplotlib icon' I've changed this code section of backend_gtk.py in cvs so it catches all exceptions, prints a warning and continues running, rather than aborting on unknown exceptions. Steve |