mailr11745 - /branches/bieri_gui/gui_bieri/user_functions/molecule.py


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

Header


Content

Posted by edward on December 08, 2010 - 17:53:
Author: bugman
Date: Wed Dec  8 17:53:22 2010
New Revision: 11745

URL: http://svn.gna.org/viewcvs/relax?rev=11745&view=rev
Log:
Created the infrastructure for the molecule user function GUI elements.


Added:
    branches/bieri_gui/gui_bieri/user_functions/molecule.py

Added: branches/bieri_gui/gui_bieri/user_functions/molecule.py
URL: 
http://svn.gna.org/viewcvs/relax/branches/bieri_gui/gui_bieri/user_functions/molecule.py?rev=11745&view=auto
==============================================================================
--- branches/bieri_gui/gui_bieri/user_functions/molecule.py (added)
+++ branches/bieri_gui/gui_bieri/user_functions/molecule.py Wed Dec  8 
17:53:22 2010
@@ -1,0 +1,47 @@
+###############################################################################
+#                                                                            
 #
+# Copyright (C) 2010 Edward d'Auvergne                                       
 #
+#                                                                            
 #
+# This file is part of the program relax.                                    
 #
+#                                                                            
 #
+# relax is free software; you can redistribute it and/or modify              
 #
+# it under the terms of the GNU General Public License as published by       
 #
+# the Free Software Foundation; either version 2 of the License, or          
 #
+# (at your option) any later version.                                        
 #
+#                                                                            
 #
+# relax is distributed in the hope that it will be useful,                   
 #
+# but WITHOUT ANY WARRANTY; without even the implied warranty of             
 #
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the              
 #
+# GNU General Public License for more details.                               
 #
+#                                                                            
 #
+# You should have received a copy of the GNU General Public License          
 #
+# along with relax; if not, write to the Free Software                       
 #
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA  
 #
+#                                                                            
 #
+###############################################################################
+
+# Module docstring.
+"""The molecule user function GUI elements."""
+
+# GUI module imports.
+from base import UF_base, UF_window
+
+
+# The container class.
+class Molecule(UF_base):
+    """The container class for holding all GUI elements."""
+
+    def setup(self):
+        """Place all the GUI classes into this class for storage."""
+
+        # The add dialog.
+        self.add = Add_window(self.gui, self.interpreter)
+
+
+class Add_window(UF_window):
+    """The molecule.add() user function window."""
+
+    # Some class variables.
+    title = 'Molecule addition'
+
+    




Related Messages


Powered by MHonArc, Updated Wed Dec 08 18:20:02 2010