libqtile/images.py
def from_path(cls, image_path):
        "Create an Img instance from image_path"
        with open(image_path, 'rb') as fobj:
            bytes_img = fobj.read()
        name = os.path.basename(image_path)
        name, file_type = os.path.splitext(name)
        return cls(bytes_img, name=name, path=image_path)
Create an Img instance from image_path
Create an Img instance from image_path
Create an Img instance from image_path
def from_path(cls, image_path):
        with open(image_path, 'rb') as fobj:
            bytes_img = fobj.read()
        name = os.path.basename(image_path)
        name, file_type = os.path.splitext(name)
        return cls(bytes_img, name=name, path=image_path)
def from_path ( cls , image_path ) : with open ( image_path , 'rb' ) as fobj : bytes_img = fobj . read ( ) name = os . path . basename ( image_path ) name , file_type = os . path . splitext ( name ) return cls ( bytes_img , name = name , path = image_path )
Create an Img instance from image_path
Create an Img instance from image_path
"Create an Img instance from image_path"
cls
image_path