* src/docgen/PdfDoc.py (make_color): Remove the first occurence --
was defined twice; (left_print): Remove print statement. svn: r2081
This commit is contained in:
parent
ea57b37251
commit
b3298e8d35
@ -4,6 +4,8 @@
|
|||||||
* src/docgen/SvgDrawDoc.py: Change from Text/DrawDoc to BaseDoc
|
* src/docgen/SvgDrawDoc.py: Change from Text/DrawDoc to BaseDoc
|
||||||
|
|
||||||
2003-09-01 Alex Roitman <shura@alex.neuro.umn.edu>
|
2003-09-01 Alex Roitman <shura@alex.neuro.umn.edu>
|
||||||
|
* src/docgen/PdfDoc.py (make_color): Remove the first occurence --
|
||||||
|
was defined twice; (left_print): Remove print statement.
|
||||||
* src/plugins/BookReport.py (BookList.save): Enable saving options
|
* src/plugins/BookReport.py (BookList.save): Enable saving options
|
||||||
which are lists;
|
which are lists;
|
||||||
(BookParser.startElement, BookParser.endElement): Enable parsing
|
(BookParser.startElement, BookParser.endElement): Enable parsing
|
||||||
|
@ -475,7 +475,6 @@ class PdfDoc(BaseDoc.BaseDoc):
|
|||||||
start_x = x
|
start_x = x
|
||||||
|
|
||||||
for text in lines:
|
for text in lines:
|
||||||
print text, start_x, start_y
|
|
||||||
s = String(start_x,
|
s = String(start_x,
|
||||||
start_y,
|
start_y,
|
||||||
str(text),
|
str(text),
|
||||||
@ -486,9 +485,6 @@ class PdfDoc(BaseDoc.BaseDoc):
|
|||||||
self.drawing.add(s)
|
self.drawing.add(s)
|
||||||
start_y = start_y - size*1.2
|
start_y = start_y - size*1.2
|
||||||
|
|
||||||
def make_color(c):
|
|
||||||
return Color(float(c[0])/255.0, float(c[1])/255.0, float(c[2])/255.0)
|
|
||||||
|
|
||||||
#------------------------------------------------------------------------
|
#------------------------------------------------------------------------
|
||||||
#
|
#
|
||||||
# Convert an RGB color tulple to a Color instance
|
# Convert an RGB color tulple to a Color instance
|
||||||
|
Loading…
Reference in New Issue
Block a user