"Fossies" - the Fresh Open Source Software Archive  

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

pipe_editor.py  (relax-4.1.3.src.tar.bz2):pipe_editor.py  (relax-5.0.0.src.tar.bz2)
skipping to change at line 203 skipping to change at line 203
# Initialise the menu. # Initialise the menu.
menu = wx.Menu() menu = wx.Menu()
# Loop over the menu items. # Loop over the menu items.
for i in range(len(popup_menus)): for i in range(len(popup_menus)):
# Alias. # Alias.
info = popup_menus[i] info = popup_menus[i]
# Add the menu item. # Add the menu item.
menu.AppendItem(build_menu_item(menu, id=info['id'], text=info['text '], icon=info['icon'])) build_menu_item(menu, id=info['id'], text=info['text'], icon=info['i con'])
# Bind clicks. # Bind clicks.
self.Bind(wx.EVT_MENU, info['method'], id=info['id']) self.Bind(wx.EVT_MENU, info['method'], id=info['id'])
# Pop up the menu. # Pop up the menu.
if status.show_gui: if status.show_gui:
self.PopupMenu(menu) self.PopupMenu(menu)
# Cleanup. # Cleanup.
menu.Destroy() menu.Destroy()
skipping to change at line 230 skipping to change at line 230
""" """
# Create a horizontal layout for the buttons. # Create a horizontal layout for the buttons.
button_sizer = wx.BoxSizer(wx.HORIZONTAL) button_sizer = wx.BoxSizer(wx.HORIZONTAL)
sizer.Add(button_sizer, 0, wx.ALL|wx.EXPAND, 0) sizer.Add(button_sizer, 0, wx.ALL|wx.EXPAND, 0)
# The bundle button. # The bundle button.
self.button_bundle = wx.lib.buttons.ThemedGenBitmapTextButton(self.main_ panel, -1, None, " Bundle") self.button_bundle = wx.lib.buttons.ThemedGenBitmapTextButton(self.main_ panel, -1, None, " Bundle")
self.button_bundle.SetBitmapLabel(wx.Bitmap(fetch_icon("relax.pipe_bundl e", size="22x22"), wx.BITMAP_TYPE_ANY)) self.button_bundle.SetBitmapLabel(wx.Bitmap(fetch_icon("relax.pipe_bundl e", size="22x22"), wx.BITMAP_TYPE_ANY))
self.button_bundle.SetFont(font.normal) self.button_bundle.SetFont(font.normal)
self.button_bundle.SetToolTipString("Add a data pipe to a data pipe bund le.") self.button_bundle.SetToolTip(wx.ToolTip("Add a data pipe to a data pipe bundle."))
button_sizer.Add(self.button_bundle, 1, wx.ALL|wx.EXPAND, 0) button_sizer.Add(self.button_bundle, 1, wx.ALL|wx.EXPAND, 0)
self.Bind(wx.EVT_BUTTON, self.uf_launch, self.button_bundle) self.Bind(wx.EVT_BUTTON, self.uf_launch, self.button_bundle)
# The create button. # The create button.
self.button_create = wx.lib.buttons.ThemedGenBitmapTextButton(self.main_ panel, -1, None, " Create") self.button_create = wx.lib.buttons.ThemedGenBitmapTextButton(self.main_ panel, -1, None, " Create")
self.button_create.SetBitmapLabel(wx.Bitmap(fetch_icon('oxygen.actions.l ist-add-relax-blue', "22x22"), wx.BITMAP_TYPE_ANY)) self.button_create.SetBitmapLabel(wx.Bitmap(fetch_icon('oxygen.actions.l ist-add-relax-blue', "22x22"), wx.BITMAP_TYPE_ANY))
self.button_create.SetFont(font.normal) self.button_create.SetFont(font.normal)
self.button_create.SetToolTipString("Create a new data pipe.") self.button_create.SetToolTip(wx.ToolTip("Create a new data pipe."))
button_sizer.Add(self.button_create, 1, wx.ALL|wx.EXPAND, 0) button_sizer.Add(self.button_create, 1, wx.ALL|wx.EXPAND, 0)
self.Bind(wx.EVT_BUTTON, self.uf_launch, self.button_create) self.Bind(wx.EVT_BUTTON, self.uf_launch, self.button_create)
# The copy button. # The copy button.
self.button_copy = wx.lib.buttons.ThemedGenBitmapTextButton(self.main_pa nel, -1, None, " Copy") self.button_copy = wx.lib.buttons.ThemedGenBitmapTextButton(self.main_pa nel, -1, None, " Copy")
self.button_copy.SetBitmapLabel(wx.Bitmap(fetch_icon('oxygen.actions.lis t-add', "22x22"), wx.BITMAP_TYPE_ANY)) self.button_copy.SetBitmapLabel(wx.Bitmap(fetch_icon('oxygen.actions.lis t-add', "22x22"), wx.BITMAP_TYPE_ANY))
self.button_copy.SetFont(font.normal) self.button_copy.SetFont(font.normal)
self.button_copy.SetToolTipString("Copy a data pipe.") self.button_copy.SetToolTip(wx.ToolTip("Copy a data pipe."))
button_sizer.Add(self.button_copy, 1, wx.ALL|wx.EXPAND, 0) button_sizer.Add(self.button_copy, 1, wx.ALL|wx.EXPAND, 0)
self.Bind(wx.EVT_BUTTON, self.uf_launch, self.button_copy) self.Bind(wx.EVT_BUTTON, self.uf_launch, self.button_copy)
# The delete button. # The delete button.
self.button_delete = wx.lib.buttons.ThemedGenBitmapTextButton(self.main_ panel, -1, None, " Delete") self.button_delete = wx.lib.buttons.ThemedGenBitmapTextButton(self.main_ panel, -1, None, " Delete")
self.button_delete.SetBitmapLabel(wx.Bitmap(fetch_icon('oxygen.actions.l ist-remove', "22x22"), wx.BITMAP_TYPE_ANY)) self.button_delete.SetBitmapLabel(wx.Bitmap(fetch_icon('oxygen.actions.l ist-remove', "22x22"), wx.BITMAP_TYPE_ANY))
self.button_delete.SetFont(font.normal) self.button_delete.SetFont(font.normal)
self.button_delete.SetToolTipString("Delete a data pipe.") self.button_delete.SetToolTip(wx.ToolTip("Delete a data pipe."))
button_sizer.Add(self.button_delete, 1, wx.ALL|wx.EXPAND, 0) button_sizer.Add(self.button_delete, 1, wx.ALL|wx.EXPAND, 0)
self.Bind(wx.EVT_BUTTON, self.uf_launch, self.button_delete) self.Bind(wx.EVT_BUTTON, self.uf_launch, self.button_delete)
# The hybridise button. # The hybridise button.
self.button_hybrid = wx.lib.buttons.ThemedGenBitmapTextButton(self.main_ panel, -1, None, " Hybridise") self.button_hybrid = wx.lib.buttons.ThemedGenBitmapTextButton(self.main_ panel, -1, None, " Hybridise")
self.button_hybrid.SetBitmapLabel(wx.Bitmap(fetch_icon('relax.pipe_hybri d', "22x22"), wx.BITMAP_TYPE_ANY)) self.button_hybrid.SetBitmapLabel(wx.Bitmap(fetch_icon('relax.pipe_hybri d', "22x22"), wx.BITMAP_TYPE_ANY))
self.button_hybrid.SetFont(font.normal) self.button_hybrid.SetFont(font.normal)
self.button_hybrid.SetToolTipString("Hybridise data pipes.") self.button_hybrid.SetToolTip(wx.ToolTip("Hybridise data pipes."))
button_sizer.Add(self.button_hybrid, 1, wx.ALL|wx.EXPAND, 0) button_sizer.Add(self.button_hybrid, 1, wx.ALL|wx.EXPAND, 0)
self.Bind(wx.EVT_BUTTON, self.uf_launch, self.button_hybrid) self.Bind(wx.EVT_BUTTON, self.uf_launch, self.button_hybrid)
# The switch button. # The switch button.
self.button_switch = wx.lib.buttons.ThemedGenBitmapTextButton(self.main_ panel, -1, None, " Switch") self.button_switch = wx.lib.buttons.ThemedGenBitmapTextButton(self.main_ panel, -1, None, " Switch")
self.button_switch.SetBitmapLabel(wx.Bitmap(fetch_icon('oxygen.actions.s ystem-switch-user', "22x22"), wx.BITMAP_TYPE_ANY)) self.button_switch.SetBitmapLabel(wx.Bitmap(fetch_icon('oxygen.actions.s ystem-switch-user', "22x22"), wx.BITMAP_TYPE_ANY))
self.button_switch.SetFont(font.normal) self.button_switch.SetFont(font.normal)
self.button_switch.SetToolTipString("Switch data pipes.") self.button_switch.SetToolTip(wx.ToolTip("Switch data pipes."))
button_sizer.Add(self.button_switch, 1, wx.ALL|wx.EXPAND, 0) button_sizer.Add(self.button_switch, 1, wx.ALL|wx.EXPAND, 0)
self.Bind(wx.EVT_BUTTON, self.uf_launch, self.button_switch) self.Bind(wx.EVT_BUTTON, self.uf_launch, self.button_switch)
def uf_launch(self, event): def uf_launch(self, event):
"""Launch the user function GUI wizards. """Launch the user function GUI wizards.
@param event: The wx event. @param event: The wx event.
@type event: wx event @type event: wx event
""" """
 End of changes. 7 change blocks. 
7 lines changed or deleted 7 lines changed or added

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