"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "gui/components/scripts.py" between
relax-4.1.3.src.tar.bz2 and relax-5.0.0.src.tar.bz2

About: relax allows the study of molecular dynamics through the analysis of experimental NMR data. Organic molecules, proteins, RNA, DNA, sugars, and other biomolecules are all supported.

scripts.py  (relax-4.1.3.src.tar.bz2):scripts.py  (relax-5.0.0.src.tar.bz2)
skipping to change at line 27 skipping to change at line 27
# # # #
# You should have received a copy of the GNU General Public License # # You should have received a copy of the GNU General Public License #
# along with this program. If not, see <http://www.gnu.org/licenses/>. # # along with this program. If not, see <http://www.gnu.org/licenses/>. #
# # # #
############################################################################### ###############################################################################
# Module docstring. # Module docstring.
"""Module containing the scripts GUI element for listing the scripts used in the analysis.""" """Module containing the scripts GUI element for listing the scripts used in the analysis."""
# relax module imports. # relax module imports.
import dep_check
from graphics import fetch_icon from graphics import fetch_icon
from gui.components.base_list import Base_list from gui.components.base_list import Base_list
from gui.string_conv import str_to_gui from gui.string_conv import str_to_gui
from gui.uf_objects import Uf_storage; uf_store = Uf_storage() from gui.uf_objects import Uf_storage; uf_store = Uf_storage()
class Scripts(Base_list): class Scripts(Base_list):
"""The GUI element for listing the scripts used in the analysis.""" """The GUI element for listing the scripts used in the analysis."""
def action_bmrb_script(self, event): def action_bmrb_script(self, event):
"""Launch the bmrb.script user function. """Launch the bmrb.script user function.
skipping to change at line 78 skipping to change at line 79
def update_data(self): def update_data(self):
"""Method called from self.build_element_safe() to update the list data. """ """Method called from self.build_element_safe() to update the list data. """
# Expand the number of rows to match the number of entries, and add the data. # Expand the number of rows to match the number of entries, and add the data.
n = 0 n = 0
if hasattr(cdp, 'exp_info') and hasattr(cdp.exp_info, 'scripts'): if hasattr(cdp, 'exp_info') and hasattr(cdp.exp_info, 'scripts'):
n = len(cdp.exp_info.scripts) n = len(cdp.exp_info.scripts)
for i in range(n): for i in range(n):
# Set the scripts name. # Set the scripts name.
self.element.InsertStringItem(i, str_to_gui(cdp.exp_info.scripts if dep_check.wx_classic:
[i].file)) self.element.InsertStringItem(i, str_to_gui(cdp.exp_info.scr
ipts[i].file))
else:
self.element.InsertItem(i, str_to_gui(cdp.exp_info.scripts[i
].file))
 End of changes. 2 change blocks. 
0 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)