mailr11723 - 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 - 11:51:
Author: bugman
Date: Tue Dec  7 11:51:57 2010
New Revision: 11723

URL: http://svn.gna.org/viewcvs/relax?rev=11723&view=rev
Log:
The residue 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=11723&r1=11722&r2=11723&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 
11:51:57 2010
@@ -63,6 +63,7 @@
         # Build the icon list.
         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.tree.SetImageList(icon_list)
 
         # Some weird black magic (this is essential)!!
@@ -114,6 +115,9 @@
                 res_branch = self.tree.AppendItem(mol_branch, "Residue %s 
%s" % (res.num, res.name))
                 self.tree.SetPyData(res_branch, None)
 
+                # Set the bitmap.
+                self.tree.SetItemImage(res_branch, self.icon_res_index, 
wx.TreeItemIcon_Normal & wx.TreeItemIcon_Expanded)
+
                 # The spins.
                 for spin in res.spin:
                     # Append a spin with name and number to the tree.

Modified: branches/bieri_gui/gui_bieri/paths.py
URL: 
http://svn.gna.org/viewcvs/relax/branches/bieri_gui/gui_bieri/paths.py?rev=11723&r1=11722&r2=11723&view=diff
==============================================================================
--- branches/bieri_gui/gui_bieri/paths.py (original)
+++ branches/bieri_gui/gui_bieri/paths.py Tue Dec  7 11:51:57 2010
@@ -68,3 +68,4 @@
 #REMOVE_ICON = ICON_PATH + '48x48'+sep+'actions'+sep+'list-remove.png'
 
 MOLECULE_ICON = ICON_RELAX_PATH + '22x22'+sep+'molecule.png'
+RESIDUE_ICON = ICON_RELAX_PATH + '22x22'+sep+'residue.png'




Related Messages


Powered by MHonArc, Updated Tue Dec 07 12:20:02 2010