mailr14741 - /1.3/gui/relax_gui.py


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

Header


Content

Posted by edward on September 21, 2011 - 19:09:
Author: bugman
Date: Wed Sep 21 19:09:28 2011
New Revision: 14741

URL: http://svn.gna.org/viewcvs/relax?rev=14741&view=rev
Log:
Bug fix for the main window status bar on MS Windows.

The text is now being set with wx.CallAfter calls.  Without this, sometimes 
the text would be blank.


Modified:
    1.3/gui/relax_gui.py

Modified: 1.3/gui/relax_gui.py
URL: 
http://svn.gna.org/viewcvs/relax/1.3/gui/relax_gui.py?rev=14741&r1=14740&r2=14741&view=diff
==============================================================================
--- 1.3/gui/relax_gui.py (original)
+++ 1.3/gui/relax_gui.py Wed Sep 21 19:09:28 2011
@@ -134,9 +134,9 @@
 
         # Set up the status bar.
         self.status_bar = self.CreateStatusBar(3, 0)
-        self.status_bar.SetStatusWidths([-4, -1, -2])
-        self.status_bar.SetStatusText("(C) 2001-2011 the relax development 
team", 0)
-        self.status_bar.SetStatusText("Current data pipe:", 1)
+        wx.CallAfter(self.status_bar.SetStatusWidths, [-4, -1, -2])
+        wx.CallAfter(self.status_bar.SetStatusText, "(C) 2001-2011 the relax 
development team", 0)
+        wx.CallAfter(self.status_bar.SetStatusText, "Current data pipe:", 1)
         self.update_status_bar()
 
         # Add the start screen.




Related Messages


Powered by MHonArc, Updated Wed Sep 21 20:00:02 2011