Fix docstrings of .open() and .close() to match new use pattern

This commit is contained in:
Florian Festi 2019-02-13 09:04:57 +01:00
parent 9b1ce265bf
commit 679234afd3
1 changed files with 4 additions and 2 deletions

View File

@ -276,7 +276,8 @@ class Boxes:
""" """
Prepare for rendering Prepare for rendering
Call this function from your .render() method Create canvas and edge and other objects
Call this before .render()
""" """
if self.ctx is not None: if self.ctx is not None:
return return
@ -571,7 +572,8 @@ class Boxes:
def close(self): def close(self):
"""Finish rendering """Finish rendering
Call at the end of your .render() method""" Flush canvas to disk and convert output to requested format if needed.
Call after .render()"""
if self.ctx == None: if self.ctx == None:
return return