Package gui :: Package user_functions
[hide private]
[frames] | no frames]

Source Code for Package gui.user_functions

  1  ############################################################################### 
  2  #                                                                             # 
  3  # Copyright (C) 2010-2012 Edward d'Auvergne                                   # 
  4  #                                                                             # 
  5  # This file is part of the program relax.                                     # 
  6  #                                                                             # 
  7  # relax is free software; you can redistribute it and/or modify               # 
  8  # it under the terms of the GNU General Public License as published by        # 
  9  # the Free Software Foundation; either version 2 of the License, or           # 
 10  # (at your option) any later version.                                         # 
 11  #                                                                             # 
 12  # relax is distributed in the hope that it will be useful,                    # 
 13  # but WITHOUT ANY WARRANTY; without even the implied warranty of              # 
 14  # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               # 
 15  # GNU General Public License for more details.                                # 
 16  #                                                                             # 
 17  # You should have received a copy of the GNU General Public License           # 
 18  # along with relax; if not, write to the Free Software                        # 
 19  # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA   # 
 20  #                                                                             # 
 21  ############################################################################### 
 22   
 23  # Package docstring. 
 24  """User function GUI elements.""" 
 25   
 26  # relax module imports. 
 27  from relax_errors import RelaxError 
 28   
 29  # GUI module imports. 
 30  from bmrb import Bmrb 
 31  from bruker import Bruker 
 32  from deselect import Deselect 
 33  from gpl import Gpl 
 34  from grace import Grace 
 35  from molecule import Molecule 
 36  from molmol import Molmol 
 37  from noe import Noe 
 38  from pipe import Pipe 
 39  from pymol import Pymol 
 40  from residue import Residue 
 41  from results import Results 
 42  from relax_data import Relax_data 
 43  from relax_fit import Relax_fit 
 44  from script import Script 
 45  from select import Select 
 46  from sequence import Sequence 
 47  from spectrum import Spectrum 
 48  from spin import Spin 
 49  from structure import Structure 
 50  from sys_info import Sys_info 
 51  from value import Value 
 52   
 53   
 54  # The package __all__ list. 
 55  __all__ = ['base', 
 56             'bmrb', 
 57             'bruker', 
 58             'deselect', 
 59             'gpl', 
 60             'grace', 
 61             'molecule', 
 62             'molmol', 
 63             'noe', 
 64             'pipe', 
 65             'pymol', 
 66             'residue', 
 67             'results', 
 68             'relax_data', 
 69             'relax_fit', 
 70             'script', 
 71             'select', 
 72             'sequence', 
 73             'spectrum', 
 74             'spin', 
 75             'structure', 
 76             'sys_info', 
 77             'value'] 
 78   
 79   
80 -class User_functions:
81 """Container for all the user function GUI elements. 82 83 This uses the observer design pattern to allow for GUI updates upon completion of a user function. 84 """ 85
86 - def __init__(self, parent=None):
87 """Set up the container. 88 89 @keyword parent: The parent window. 90 @type parent: wx.Window instance 91 """ 92 93 # The user functions. 94 self.bmrb = Bmrb(parent) 95 self.bruker = Bruker(parent) 96 self.deselect = Deselect(parent) 97 self.gpl = Gpl(parent) 98 self.grace = Grace(parent) 99 self.molecule = Molecule(parent) 100 self.molmol = Molmol(parent) 101 self.noe = Noe(parent) 102 self.pipe = Pipe(parent) 103 self.pymol = Pymol(parent) 104 self.residue = Residue(parent) 105 self.results = Results(parent) 106 self.relax_data = Relax_data(parent) 107 self.relax_fit = Relax_fit(parent) 108 self.script = Script(parent) 109 self.select = Select(parent) 110 self.sequence = Sequence(parent) 111 self.spectrum = Spectrum(parent) 112 self.spin = Spin(parent) 113 self.structure = Structure(parent) 114 self.sys_info = Sys_info(parent) 115 self.value = Value(parent)
116