[Rdkit-devel] [PATCH 04/17] pep8 clean
Open-Source Cheminformatics and Machine Learning
Brought to you by:
glandrum
|
From: Gianluca S. <gi...@gm...> - 2011-03-19 09:44:37
|
---
rdkit/Chem/Draw/canvasbase.py | 14 ++++++++++++--
1 files changed, 12 insertions(+), 2 deletions(-)
diff --git a/rdkit/Chem/Draw/canvasbase.py b/rdkit/Chem/Draw/canvasbase.py
index 86c13c5..bed4bd5 100644
--- a/rdkit/Chem/Draw/canvasbase.py
+++ b/rdkit/Chem/Draw/canvasbase.py
@@ -7,10 +7,18 @@
# which is included in the file license.txt, found at the root
# of the RDKit source tree.
+
class CanvasBase:
""" Base class for specialized canvas backends """
- def addCanvasLine(self):
+ def addCanvasLine(self, p1, p2, color=(0, 0, 0), color2=None, **kwargs):
+ """ Draw a single line on the canvas
+
+ This function will draw a line between p1 and p2 with the
+ given color.
+ If color2 is specified, it will be used to draw the second half
+ of the segment
+ """
assert False, 'This should be implemented'
def addCanvasText(self):
@@ -18,7 +26,9 @@ class CanvasBase:
def addCanvasPolygon(self):
assert False, 'This should be implemented'
-
+
def addCanvasDashedWedge(self):
assert False, 'This should be implemented'
+ def flush(self):
+ assert False, 'This should be implemented'
--
1.7.4
|