Trees | Indices | Help |
|
---|
|
1 ############################################################################### 2 # # 3 # Copyright (C) 2003,2006-2008,2012 Edward d'Auvergne # 4 # # 5 # This file is part of the program relax (http://www.nmr-relax.com). # 6 # # 7 # This program 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 3 of the License, or # 10 # (at your option) any later version. # 11 # # 12 # This program 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 this program. If not, see <http://www.gnu.org/licenses/>. # 19 # # 20 ############################################################################### 21 22 # Dependencies. 23 import dep_check 24 25 # Python module imports. 26 if dep_check.wx_module: 27 import wx 28 29 # relax module imports. 30 from data_store import Relax_data_store; ds = Relax_data_store() 31 3234 """Reset relax.""" 35 36 # Run the relax data storage object reset method. 37 ds.__reset__() 38 39 # Clean up and reset the GUI. 40 if dep_check.wx_module: 41 # The wx application. 42 app = wx.GetApp() 43 44 # Nothing to do. 45 if app == None or not hasattr(app, 'gui'): 46 return 47 48 # Call the GUI reset. 49 if hasattr(app.gui, 'reset'): 50 app.gui.reset()51
Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Sat Jun 8 10:44:47 2024 | http://epydoc.sourceforge.net |