Author: bugman Date: Wed Jul 6 15:31:39 2011 New Revision: 13452 URL: http://svn.gna.org/viewcvs/relax?rev=13452&view=rev Log: The molecule, residue and spin container graphics in the spin viewer are now greyscale when deselected. Modified: branches/gui_testing/gui/spin_viewer/containers.py Modified: branches/gui_testing/gui/spin_viewer/containers.py URL: http://svn.gna.org/viewcvs/relax/branches/gui_testing/gui/spin_viewer/containers.py?rev=13452&r1=13451&r2=13452&view=diff ============================================================================== --- branches/gui_testing/gui/spin_viewer/containers.py (original) +++ branches/gui_testing/gui/spin_viewer/containers.py Wed Jul 6 15:31:39 2011 @@ -334,7 +334,11 @@ sizer.AddStretchSpacer() # The graphic. - image = wx.StaticBitmap(self, -1, wx.Bitmap(paths.WIZARD_IMAGE_PATH + 'molecule.png', wx.BITMAP_TYPE_ANY)) + if self.select: + path = paths.WIZARD_IMAGE_PATH + 'molecule.png' + else: + path = paths.WIZARD_IMAGE_PATH + 'molecule_grey.png' + image = wx.StaticBitmap(self, -1, wx.Bitmap(path, wx.BITMAP_TYPE_ANY)) sizer.Add(image, 0, wx.RIGHT, 0) # Return the sizer. @@ -380,7 +384,11 @@ sizer.AddStretchSpacer() # The graphic. - image = wx.StaticBitmap(self, -1, wx.Bitmap(paths.WIZARD_IMAGE_PATH + 'residue.png', wx.BITMAP_TYPE_ANY)) + if self.select: + path = paths.WIZARD_IMAGE_PATH + 'residue.png' + else: + path = paths.WIZARD_IMAGE_PATH + 'residue_grey.png' + image = wx.StaticBitmap(self, -1, wx.Bitmap(path, wx.BITMAP_TYPE_ANY)) sizer.Add(image, 0, wx.RIGHT, 0) # Return the sizer. @@ -430,7 +438,11 @@ sizer.AddStretchSpacer() # The graphic. - image = wx.StaticBitmap(self, -1, wx.Bitmap(paths.WIZARD_IMAGE_PATH + 'spin.png', wx.BITMAP_TYPE_ANY)) + if self.select: + path = paths.WIZARD_IMAGE_PATH + 'spin.png' + else: + path = paths.WIZARD_IMAGE_PATH + 'spin_grey.png' + image = wx.StaticBitmap(self, -1, wx.Bitmap(path, wx.BITMAP_TYPE_ANY)) sizer.Add(image, 0, wx.RIGHT, 0) # Return the sizer.