diff options
Diffstat (limited to 'cairoplot/handlers/handler.py')
-rwxr-xr-x | cairoplot/handlers/handler.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/cairoplot/handlers/handler.py b/cairoplot/handlers/handler.py new file mode 100755 index 0000000..0ec54a7 --- /dev/null +++ b/cairoplot/handlers/handler.py @@ -0,0 +1,11 @@ + +class Handler(object): + """Base class for all handlers.""" + + def prepare(self, plot): + pass + + def commit(self, plot): + """All handlers need to finalize the cairo context.""" + plot.context.show_page() + |