api/media.ev3dev.Image: Add default args for empty()

Implementation has been changed so that omitting args gives an empty
image the same size as the screen.
This commit is contained in:
David Lechner
2020-02-21 11:01:44 -06:00
parent 854760feb6
commit df6cfa30f6
+4 -2
View File
@@ -190,8 +190,10 @@ class Image:
pass
@staticmethod
def empty(width, height):
"""Creates a new empty :class:`Image` object.
def empty(width=178, height=128):
"""empty(width=<screen width>, height=<screen height>)
Creates a new empty :class:`Image` object.
Arguments:
width (int):