"Fossies" - the Fresh Open Source Software Archive  

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

misc.py  (relax-4.1.3.src.tar.bz2):misc.py  (relax-5.0.0.src.tar.bz2)
skipping to change at line 128 skipping to change at line 128
@param path: The absolute path to the bitmap image. @param path: The absolute path to the bitmap image.
@type path: str @type path: str
@return: The processed bitmap object. @return: The processed bitmap object.
@rtype: wx.Bitmap instance @rtype: wx.Bitmap instance
""" """
# Create the bitmap object. # Create the bitmap object.
bitmap = wx.Bitmap(path, wx.BITMAP_TYPE_ANY) bitmap = wx.Bitmap(path, wx.BITMAP_TYPE_ANY)
# Unset the mask if an alpha mask is detected (only on GNU/Linux and MS Wind
ows).
if bitmap.HasAlpha() and not (hasattr(status, 'wx_info') and status.wx_info[
"os"] == "darwin"):
bitmap.SetMaskColour(wx.Colour(alpha=wx.ALPHA_OPAQUE))
# Return the bitmap object. # Return the bitmap object.
return bitmap return bitmap
def format_table(table): def format_table(table):
"""Format the text by stripping whitespace. """Format the text by stripping whitespace.
@param table: The table. @param table: The table.
@type table: lists of lists of str @type table: lists of lists of str
@return: The formatted table. @return: The formatted table.
@rtype: str @rtype: str
 End of changes. 1 change blocks. 
6 lines changed or deleted 0 lines changed or added

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