Corrected docstring

This commit is contained in:
Andrew Murray 2021-02-16 22:33:17 +11:00
parent fdd8b68b83
commit 223b05a2ea

View File

@ -63,8 +63,7 @@ def rgb(r, g, b, a=255):
def fromqimage(im): def fromqimage(im):
""" """
:param im: A PIL Image object, or a file name :param im: QImage or PIL ImageQt object
(given either as Python string or a PyQt string object)
""" """
buffer = QBuffer() buffer = QBuffer()
qt_openmode = QIODevice.OpenMode if qt_version == "6" else QIODevice qt_openmode = QIODevice.OpenMode if qt_version == "6" else QIODevice