"Fossies" - the Fresh Open Source Software Archive  

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

export_bmrb.py  (relax-4.1.3.src.tar.bz2):export_bmrb.py  (relax-5.0.0.src.tar.bz2)
skipping to change at line 189 skipping to change at line 189
button_sizer = wx.BoxSizer(wx.HORIZONTAL) button_sizer = wx.BoxSizer(wx.HORIZONTAL)
sizer.Add(button_sizer, 0, wx.ALIGN_RIGHT, 0) sizer.Add(button_sizer, 0, wx.ALIGN_RIGHT, 0)
# Preview button. # Preview button.
button = wx.lib.buttons.ThemedGenBitmapTextButton(self.main_panel, -1, N one, " Preview") button = wx.lib.buttons.ThemedGenBitmapTextButton(self.main_panel, -1, N one, " Preview")
button.SetBitmapLabel(wx.Bitmap(fetch_icon('oxygen.actions.document-prev iew', "32x32"), wx.BITMAP_TYPE_ANY)) button.SetBitmapLabel(wx.Bitmap(fetch_icon('oxygen.actions.document-prev iew', "32x32"), wx.BITMAP_TYPE_ANY))
button.SetFont(font.normal) button.SetFont(font.normal)
button.SetMinSize(self.button_size) button.SetMinSize(self.button_size)
button_sizer.Add(button, 0, 0, 0) button_sizer.Add(button, 0, 0, 0)
self.Bind(wx.EVT_BUTTON, self.action_preview, button) self.Bind(wx.EVT_BUTTON, self.action_preview, button)
button.SetToolTipString("Preview the NMR-STAR formatted data.") button.SetToolTip(wx.ToolTip("Preview the NMR-STAR formatted data."))
# Spacing. # Spacing.
button_sizer.AddSpacer(self.button_spacing) button_sizer.AddSpacer(self.button_spacing)
# Export button. # Export button.
button = wx.lib.buttons.ThemedGenBitmapTextButton(self.main_panel, -1, N one, " Export") button = wx.lib.buttons.ThemedGenBitmapTextButton(self.main_panel, -1, N one, " Export")
button.SetBitmapLabel(wx.Bitmap(fetch_icon('relax.bmrb', "32x32"), wx.BI TMAP_TYPE_ANY)) button.SetBitmapLabel(wx.Bitmap(fetch_icon('relax.bmrb', "32x32"), wx.BI TMAP_TYPE_ANY))
button.SetFont(font.normal) button.SetFont(font.normal)
button.SetMinSize(self.button_size) button.SetMinSize(self.button_size)
button_sizer.Add(button, 0, 0, 0) button_sizer.Add(button, 0, 0, 0)
self.Bind(wx.EVT_BUTTON, self.action_export, button) self.Bind(wx.EVT_BUTTON, self.action_export, button)
button.SetToolTipString("Create the NMR-STAR formatted file for BMRB dep osition.") button.SetToolTip(wx.ToolTip("Create the NMR-STAR formatted file for BMR B deposition."))
# Spacing. # Spacing.
button_sizer.AddSpacer(self.button_spacing) button_sizer.AddSpacer(self.button_spacing)
# Cancel button. # Cancel button.
button = wx.lib.buttons.ThemedGenBitmapTextButton(self.main_panel, -1, N one, " Cancel") button = wx.lib.buttons.ThemedGenBitmapTextButton(self.main_panel, -1, N one, " Cancel")
button.SetBitmapLabel(wx.Bitmap(fetch_icon('oxygen.actions.dialog-cancel ', "32x32"), wx.BITMAP_TYPE_ANY)) button.SetBitmapLabel(wx.Bitmap(fetch_icon('oxygen.actions.dialog-cancel ', "32x32"), wx.BITMAP_TYPE_ANY))
button.SetFont(font.normal) button.SetFont(font.normal)
button.SetMinSize(self.button_size) button.SetMinSize(self.button_size)
button_sizer.Add(button, 0, 0, 0) button_sizer.Add(button, 0, 0, 0)
self.Bind(wx.EVT_BUTTON, self.action_cancel, button) self.Bind(wx.EVT_BUTTON, self.action_cancel, button)
button.SetToolTipString("Cancel the BMRB export.") button.SetToolTip(wx.ToolTip("Cancel the BMRB export."))
def add_header(self, sizer): def add_header(self, sizer):
"""Build and add the header to the sizer. """Build and add the header to the sizer.
@param sizer: The sizer element to pack the header into. @param sizer: The sizer element to pack the header into.
@type sizer: wx.Sizer instance @type sizer: wx.Sizer instance
""" """
# Create a horizontal layout. # Create a horizontal layout.
sub_sizer = wx.BoxSizer(wx.HORIZONTAL) sub_sizer = wx.BoxSizer(wx.HORIZONTAL)
skipping to change at line 289 skipping to change at line 289
""" """
# A sizer for the element. # A sizer for the element.
pipe_sizer = wx.BoxSizer(wx.HORIZONTAL) pipe_sizer = wx.BoxSizer(wx.HORIZONTAL)
sizer.Add(pipe_sizer, 0, wx.ALIGN_LEFT, 0) sizer.Add(pipe_sizer, 0, wx.ALIGN_LEFT, 0)
# The pipe text. # The pipe text.
text = wx.StaticText(self.main_panel, -1, ' The data pipe to export: ', style=wx.ALIGN_LEFT) text = wx.StaticText(self.main_panel, -1, ' The data pipe to export: ', style=wx.ALIGN_LEFT)
tooltip = "The name of the data pipe to export to NMR-STAR format for BM RB export." tooltip = "The name of the data pipe to export to NMR-STAR format for BM RB export."
text.SetFont(font.normal) text.SetFont(font.normal)
text.SetToolTipString(tooltip) text.SetToolTip(wx.ToolTip(tooltip))
pipe_sizer.Add(text, 0, wx.ALIGN_CENTER_VERTICAL, 0) pipe_sizer.Add(text, 0, wx.ALIGN_CENTER_VERTICAL, 0)
# Spacing. # Spacing.
pipe_sizer.AddSpacer(20) pipe_sizer.AddSpacer(20)
# The pipe selection. # The pipe selection.
self.pipe_name = wx.ComboBox(self.main_panel, -1, "", style=wx.CB_DROPDO WN|wx.CB_READONLY, choices=[]) self.pipe_name = wx.ComboBox(self.main_panel, -1, "", style=wx.CB_DROPDO WN|wx.CB_READONLY, choices=[])
self.pipe_name.SetToolTipString(tooltip) self.pipe_name.SetToolTip(wx.ToolTip(tooltip))
self.Bind(wx.EVT_COMBOBOX, self.update_pipes, self.pipe_name) self.Bind(wx.EVT_COMBOBOX, self.update_pipes, self.pipe_name)
pipe_sizer.Add(self.pipe_name, 0, wx.ALIGN_CENTER_VERTICAL, 0) pipe_sizer.Add(self.pipe_name, 0, wx.ALIGN_CENTER_VERTICAL, 0)
# Update the pipe selection. # Update the pipe selection.
self.update_pipes() self.update_pipes()
def handler_close(self, event): def handler_close(self, event):
"""Event handler for the close window action. """Event handler for the close window action.
@param event: The wx event. @param event: The wx event.
 End of changes. 5 change blocks. 
5 lines changed or deleted 5 lines changed or added

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