Author: bugman Date: Mon Dec 6 21:08:11 2010 New Revision: 11709 URL: http://svn.gna.org/viewcvs/relax?rev=11709&view=rev Log: The molecule icon is now shown in the tree view. Modified: branches/bieri_gui/gui_bieri/components/mol_res_spin_tree.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=11709&r1=11708&r2=11709&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 Mon Dec 6 21:08:11 2010 @@ -30,6 +30,8 @@ # relax module imports. from generic_fns.pipes import get_pipe +# GUI module imports. +from gui_bieri import paths class Mol_res_spin_tree(wx.Panel): @@ -90,6 +92,10 @@ # Append a molecule with name to the tree. mol_branch = self.tree.AppendItem(self.root, "Molecule %s" % mol.name) self.tree.SetPyData(mol_branch, None) + + # The icon. + bitmap = wx.StaticBitmap(self, -1, wx.Bitmap(paths.MOLECULE_ICON, wx.BITMAP_TYPE_ANY)) + self.tree.SetItemImage(mol_branch, bitmap, wx.TreeItemIcon_Normal) # The residues. for res in mol.res: