From 679234afd38ee390d9814c5c7a8c17ab8a92bf26 Mon Sep 17 00:00:00 2001 From: Florian Festi Date: Wed, 13 Feb 2019 09:04:57 +0100 Subject: [PATCH] Fix docstrings of .open() and .close() to match new use pattern --- boxes/__init__.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/boxes/__init__.py b/boxes/__init__.py index 341650d..b2d42f6 100755 --- a/boxes/__init__.py +++ b/boxes/__init__.py @@ -276,7 +276,8 @@ class Boxes: """ 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: return @@ -571,7 +572,8 @@ class Boxes: def close(self): """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: return