mailr11725 - in /branches/bieri_gui/gui_bieri: components/mol_res_spin_tree.py paths.py


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

Header


Content

Posted by edward on December 07, 2010 - 12:06:
Author: bugman
Date: Tue Dec  7 12:06:54 2010
New Revision: 11725

URL: http://svn.gna.org/viewcvs/relax?rev=11725&view=rev
Log:
The spin icon is now shown in the spin tree view.


Modified:
    branches/bieri_gui/gui_bieri/components/mol_res_spin_tree.py
    branches/bieri_gui/gui_bieri/paths.py

Modified: branches/bieri_gui/gui_bieri/components/mol_res_spin_tree.py
URL: 
http://svn.gna.org/viewcvs/relax/branches/bieri_gui/gui_bieri/components/mol_res_spin_tree.py?rev=11725&r1=11724&r2=11725&view=diff
==============================================================================
--- branches/bieri_gui/gui_bieri/components/mol_res_spin_tree.py (original)
+++ branches/bieri_gui/gui_bieri/components/mol_res_spin_tree.py Tue Dec  7 
12:06:54 2010
@@ -64,6 +64,7 @@
         icon_list = wx.ImageList(self.icon_size, self.icon_size)
         self.icon_mol_index = icon_list.Add(wx.Bitmap(paths.MOLECULE_ICON, 
wx.BITMAP_TYPE_ANY))
         self.icon_res_index = icon_list.Add(wx.Bitmap(paths.RESIDUE_ICON, 
wx.BITMAP_TYPE_ANY))
+        self.icon_spin_index = icon_list.Add(wx.Bitmap(paths.SPIN_ICON, 
wx.BITMAP_TYPE_ANY))
         self.tree.SetImageList(icon_list)
 
         # Some weird black magic (this is essential)!!
@@ -124,6 +125,9 @@
                     spin_branch = self.tree.AppendItem(res_branch, "Spin %s 
%s" % (spin.num, spin.name))
                     self.tree.SetPyData(spin_branch, None)
 
+                    # Set the bitmap.
+                    self.tree.SetItemImage(spin_branch, 
self.icon_spin_index, wx.TreeItemIcon_Normal & wx.TreeItemIcon_Expanded)
+
             # Expand the molecule view.
             self.tree.Expand(mol_branch)
 

Modified: branches/bieri_gui/gui_bieri/paths.py
URL: 
http://svn.gna.org/viewcvs/relax/branches/bieri_gui/gui_bieri/paths.py?rev=11725&r1=11724&r2=11725&view=diff
==============================================================================
--- branches/bieri_gui/gui_bieri/paths.py (original)
+++ branches/bieri_gui/gui_bieri/paths.py Tue Dec  7 12:06:54 2010
@@ -69,3 +69,4 @@
 
 MOLECULE_ICON = ICON_RELAX_PATH + '22x22'+sep+'molecule.png'
 RESIDUE_ICON = ICON_RELAX_PATH + '22x22'+sep+'residue.png'
+SPIN_ICON = ICON_RELAX_PATH + '22x22'+sep+'spin.png'




Related Messages


Powered by MHonArc, Updated Tue Dec 07 14:20:01 2010