Author: bugman Date: Wed Dec 8 13:00:14 2010 New Revision: 11735 URL: http://svn.gna.org/viewcvs/relax?rev=11735&view=rev Log: The molecule icon changes from folded to unfolded as the tree is opened and closed. 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=11735&r1=11734&r2=11735&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 Wed Dec 8 13:00:14 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.icon_22x22.molecule, wx.BITMAP_TYPE_ANY)) + self.icon_mol_unfold_index = icon_list.Add(wx.Bitmap(paths.icon_22x22.molecule_unfolded, wx.BITMAP_TYPE_ANY)) self.icon_res_index = icon_list.Add(wx.Bitmap(paths.icon_22x22.residue, wx.BITMAP_TYPE_ANY)) self.icon_spin_index = icon_list.Add(wx.Bitmap(paths.icon_22x22.spin, wx.BITMAP_TYPE_ANY)) self.tree.SetImageList(icon_list) @@ -111,7 +112,8 @@ self.tree.SetPyData(mol_branch, None) # Set the bitmap. - self.tree.SetItemImage(mol_branch, self.icon_mol_index, wx.TreeItemIcon_Normal & wx.TreeItemIcon_Expanded) + self.tree.SetItemImage(mol_branch, self.icon_mol_index, wx.TreeItemIcon_Normal) + self.tree.SetItemImage(mol_branch, self.icon_mol_unfold_index, wx.TreeItemIcon_Expanded) # The residues. for res in mol.res: