mailr16757 - /branches/uf_redesign/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 June 08, 2012 - 12:25:
Author: bugman
Date: Fri Jun  8 12:25:30 2012
New Revision: 16757

URL: http://svn.gna.org/viewcvs/relax?rev=16757&view=rev
Log:
The action_export_bmrb() method now opens the BMRB export window.


Modified:
    branches/uf_redesign/gui/relax_gui.py

Modified: branches/uf_redesign/gui/relax_gui.py
URL: 
http://svn.gna.org/viewcvs/relax/branches/uf_redesign/gui/relax_gui.py?rev=16757&r1=16756&r2=16757&view=diff
==============================================================================
--- branches/uf_redesign/gui/relax_gui.py (original)
+++ branches/uf_redesign/gui/relax_gui.py Fri Jun  8 12:25:30 2012
@@ -42,6 +42,7 @@
 from generic_fns import state
 from generic_fns.pipes import cdp_name
 from generic_fns.reset import reset
+from relax_errors import RelaxNoPipeError
 from relax_io import io_streams_restore
 from status import Status; status = Status()
 import test_suite.test_suite_runner
@@ -52,6 +53,7 @@
 from gui.analyses import Analysis_controller
 from gui.spin_viewer.frame import Spin_view_window
 from gui.controller import Controller
+from gui.export_bmrb import Export_bmrb_window
 from gui.filedialog import RelaxFileDialog
 from gui.fonts import font
 from gui.icons import Relax_task_bar_icon, relax_icons
@@ -211,6 +213,14 @@
         @type event:    wx event
         """
 
+        # No current data pipe.
+        if not cdp_name():
+            gui_raise(RelaxNoPipeError())
+            return
+
+        # Open the export window.
+        Export_bmrb_window(self)
+
 
     def action_state_save(self, event=None):
         """Save the program state.




Related Messages


Powered by MHonArc, Updated Fri Jun 08 12:40:01 2012