mailr13293 - /branches/gui_testing/gui/analyses/__init__.py


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

Header


Content

Posted by edward on June 29, 2011 - 14:56:
Author: bugman
Date: Wed Jun 29 14:56:12 2011
New Revision: 13293

URL: http://svn.gna.org/viewcvs/relax?rev=13293&view=rev
Log:
The notebook switches to the previous page if the current one is deleted now.


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

Modified: branches/gui_testing/gui/analyses/__init__.py
URL: 
http://svn.gna.org/viewcvs/relax/branches/gui_testing/gui/analyses/__init__.py?rev=13293&r1=13292&r2=13293&view=diff
==============================================================================
--- branches/gui_testing/gui/analyses/__init__.py (original)
+++ branches/gui_testing/gui/analyses/__init__.py Wed Jun 29 14:56:12 2011
@@ -142,7 +142,12 @@
 
         # The current page has been deleted, so switch one back.
         if index == self._current:
+            # Decrement.
             self._current -= 1
+
+            # Switch to that page.
+            self.notebook.SetSelection(self._current)
+
 
         # No more analyses, so in the initial state.
         if self._num_analyses == 0:




Related Messages


Powered by MHonArc, Updated Wed Jun 29 15:20:03 2011