def image_from_file(self, filename):

        # N.B 'wx.BITMAP_TYPE_ANY' tells wxPython to attempt to autodetect the
        # --- image format.
        return wx.Image(filename, wx.BITMAP_TYPE_ANY)
Creates an image from the data in the specified filename.
dataset/ETHPy150Open enthought/pyface/pyface/ui/wx/resource_manager.py/PyfaceResourceFactory.image_from_file