mailr16213 - in /branches/uf_redesign/gui: relax_gui.py settings.py


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

Header


Content

Posted by edward on May 10, 2012 - 22:37:
Author: bugman
Date: Thu May 10 22:37:04 2012
New Revision: 16213

URL: http://svn.gna.org/viewcvs/relax?rev=16213&view=rev
Log:
Eliminated the ancient unused load_sequence() GUI element.

This was part of the settings menu in the original version of the GUI, but 
now has no purpose.


Modified:
    branches/uf_redesign/gui/relax_gui.py
    branches/uf_redesign/gui/settings.py

Modified: branches/uf_redesign/gui/relax_gui.py
URL: 
http://svn.gna.org/viewcvs/relax/branches/uf_redesign/gui/relax_gui.py?rev=16213&r1=16212&r2=16213&view=diff
==============================================================================
--- branches/uf_redesign/gui/relax_gui.py (original)
+++ branches/uf_redesign/gui/relax_gui.py Thu May 10 22:37:04 2012
@@ -70,7 +70,7 @@
 from gui.references import References
 from gui.relax_prompt import Prompt
 from gui.results_viewer import Results_viewer
-from gui.settings import Free_file_format, load_sequence
+from gui.settings import Free_file_format
 from gui.uf_objects import Uf_storage, Uf_object
 from gui.uf_pages import User_functions; user_functions = User_functions()
 

Modified: branches/uf_redesign/gui/settings.py
URL: 
http://svn.gna.org/viewcvs/relax/branches/uf_redesign/gui/settings.py?rev=16213&r1=16212&r2=16213&view=diff
==============================================================================
--- branches/uf_redesign/gui/settings.py (original)
+++ branches/uf_redesign/gui/settings.py Thu May 10 22:37:04 2012
@@ -40,35 +40,6 @@
 from gui.wizard import Wiz_page
 
 
-def load_sequence():
-    """GUI element for loading the sequence file."""
-
-    # The dialog.
-    dialog = RelaxFileDialog(parent=self, message='Select a sequence file', 
style=wx.FD_OPEN)
-
-    # Show the dialog and catch if no file has been selected.
-    if status.show_gui and dialog.ShowModal() != wx.ID_OK:
-        # Don't do anything.
-        return
-
-    # The file.
-    seqfile = dialog.get_file()
-
-    # Does not exist.
-    if not access(seqfile, F_OK):
-        error_message("The file '%s' does not exist." % seqfile)
-        return None
-
-    # Not a file.
-    if path.isdir(seqfile):
-        error_message("The selection '%s' is a directory, not a file." % 
seqfile)
-        return None
-
-    # Return the file.
-    return seqfile
-
-
-
 class Base_window(wx.Dialog):
     """Base class for the settings windows."""
 




Related Messages


Powered by MHonArc, Updated Thu May 10 23:00:02 2012