"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "gui/wizards/peak_intensity.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.

peak_intensity.py  (relax-4.1.3.src.tar.bz2):peak_intensity.py  (relax-5.0.0.src.tar.bz2)
skipping to change at line 495 skipping to change at line 495
text_types = [] text_types = []
# The wrapped text. # The wrapped text.
text = wx.StaticText(panel, -1, self.main_text, style=wx.TE_MULTILINE) text = wx.StaticText(panel, -1, self.main_text, style=wx.TE_MULTILINE)
text.SetFont(font.normal) text.SetFont(font.normal)
text.Wrap(self._main_size - 20) text.Wrap(self._main_size - 20)
text_elements.append(text) text_elements.append(text)
text_types.append('title') text_types.append('title')
# The text size, then spacing. # The text size, then spacing.
x, y = text.GetSizeTuple() x, y = text.GetSize()
tot_y += y tot_y += y
tot_y += spacing tot_y += spacing
# Get the spectrum.error_analysis user function data object. # Get the spectrum.error_analysis user function data object.
uf_data = uf_info.get_uf('spectrum.error_analysis') uf_data = uf_info.get_uf('spectrum.error_analysis')
# The description sections. # The description sections.
if uf_data.desc != None: if uf_data.desc != None:
# Loop over the sections. # Loop over the sections.
for i in range(len(uf_data.desc)): for i in range(len(uf_data.desc)):
skipping to change at line 558 skipping to change at line 558
elif type in ['table', 'verbatim']: elif type in ['table', 'verbatim']:
text_obj.SetFont(font.modern_small) text_obj.SetFont(font.modern_small)
else: else:
text_obj.SetFont(font.normal) text_obj.SetFont(font.normal)
# Wrap the paragraphs and lists (with spacing for scrollbars ). # Wrap the paragraphs and lists (with spacing for scrollbars ).
if type in ['paragraph', 'list', 'item list']: if type in ['paragraph', 'list', 'item list']:
text_obj.Wrap(self._main_size - 20) text_obj.Wrap(self._main_size - 20)
# The text size. # The text size.
x, y = text_obj.GetSizeTuple() x, y = text_obj.GetSize()
tot_y += y tot_y += y
# The spacing after each element (except the last). # The spacing after each element (except the last).
tot_y += spacing tot_y += spacing
# The spacing before each section (not including the first). # The spacing before each section (not including the first).
if i != 0 and type == 'title': if i != 0 and type == 'title':
tot_y += spacing tot_y += spacing
# Append the text objects. # Append the text objects.
 End of changes. 2 change blocks. 
2 lines changed or deleted 2 lines changed or added

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