mailr13936 - /branches/gui_testing/gui/relax_gui.py


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by edward on July 27, 2011 - 19:14:
Author: bugman
Date: Wed Jul 27 19:14:39 2011
New Revision: 13936

URL: http://svn.gna.org/viewcvs/relax?rev=13936&view=rev
Log:
Better icon support in the GUI.

The ulysses.ico file is now being used as it is an bundle of images, and the 
icon bundle is now set
for the main window.


Modified:
    branches/gui_testing/gui/relax_gui.py

Modified: branches/gui_testing/gui/relax_gui.py
URL: 
http://svn.gna.org/viewcvs/relax/branches/gui_testing/gui/relax_gui.py?rev=13936&r1=13935&r2=13936&view=diff
==============================================================================
--- branches/gui_testing/gui/relax_gui.py (original)
+++ branches/gui_testing/gui/relax_gui.py Wed Jul 27 19:14:39 2011
@@ -114,10 +114,10 @@
         self.SetTitle("relax " + version)
 
         # Set up the program icon (disabled on Macs).
+        self.icons = wx.IconBundle()
         if not 'darwin' in sys.platform:
-            icon = wx.EmptyIcon()
-            icon.CopyFromBitmap(wx.Bitmap(paths.IMAGE_PATH+'relax.gif', 
wx.BITMAP_TYPE_ANY))
-            self.SetIcon(icon)
+            self.icons.AddIconFromFile(status.install_path + sep + 
'graphics' + sep + 'ulysses.ico', wx.BITMAP_TYPE_ANY)
+            self.SetIcons(self.icons)
 
         # Set up the status bar.
         self.bar = self.CreateStatusBar(3, 0)




Related Messages


Powered by MHonArc, Updated Thu Jul 28 09:00:03 2011