mailr13881 - /branches/gui_testing/gui/analyses/auto_model_free.py


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

Header


Content

Posted by edward on July 26, 2011 - 12:34:
Author: bugman
Date: Tue Jul 26 12:34:07 2011
New Revision: 13881

URL: http://svn.gna.org/viewcvs/relax?rev=13881&view=rev
Log:
The switching from red to blue flags, and back again in the model-free model 
list elements now works.


Modified:
    branches/gui_testing/gui/analyses/auto_model_free.py

Modified: branches/gui_testing/gui/analyses/auto_model_free.py
URL: 
http://svn.gna.org/viewcvs/relax/branches/gui_testing/gui/analyses/auto_model_free.py?rev=13881&r1=13880&r2=13881&view=diff
==============================================================================
--- branches/gui_testing/gui/analyses/auto_model_free.py (original)
+++ branches/gui_testing/gui/analyses/auto_model_free.py Tue Jul 26 12:34:07 
2011
@@ -750,7 +750,12 @@
         self.select = self.model_win.get_selection()
 
         # Change the flag to red to indicate to the user that changing the 
models is a bad thing!
-        self.button.SetBitmapLabel(wx.Bitmap(paths.icon_16x16.flag_red, 
wx.BITMAP_TYPE_ANY))
+        if False in self.select:
+            self.button.SetBitmapLabel(wx.Bitmap(paths.icon_16x16.flag_red, 
wx.BITMAP_TYPE_ANY))
+
+        # Otherwise set it to blue (in case all models are selected again).
+        else:
+            self.button.SetBitmapLabel(wx.Bitmap(paths.icon_16x16.flag_blue, 
wx.BITMAP_TYPE_ANY))
 
         # Update the GUI element.
         self.field.SetValue(list_to_gui(self.GetValue()))




Related Messages


Powered by MHonArc, Updated Tue Jul 26 13:00:02 2011