Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/cairoplot/handlers/handler.py
diff options
context:
space:
mode:
Diffstat (limited to 'cairoplot/handlers/handler.py')
-rwxr-xr-xcairoplot/handlers/handler.py11
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()
+