Closed GoogleCodeExporter closed 9 years ago
It could be included, but please if you can make a diff and adjust method name
PEP8 python style guide:
def set_dash(self, black=False, white=False):
Please also add documentation (at least docstring) and a test case.
sprintf is not already a method or function available?
Original comment by reingart@gmail.com
on 18 Dec 2012 at 6:14
Hi reingart,
see attached a diff file with adjusted method name to PEP8.
Documentation is added as docstring.
Yes, your right, sprintf is already an available function.
A test case would be:
# With default dash length of 1mm and space length of 1mm:
dashed_line(10, 10, 20, 10)
# Or with dash lenght of 5mm and space length of 2mm:
dashed_line(10, 10, 20, 10, 5, 2)
Original comment by dieterle...@gmail.com
on 14 Feb 2013 at 6:51
Attachments:
The unit is not in mm but as for the other functions depending on the unit
given in the fpdf constructor.
Sorry.
Original comment by dieterle...@gmail.com
on 14 Feb 2013 at 6:55
Great.
I've added you as commiter, please fell free to commit the changes directly and
close the issue.
If so, dont forget to make a sample test file and/or documentation wiki page
Thank you for you contribution!
Original comment by reingart@gmail.com
on 14 Feb 2013 at 7:46
Hi,
- The new function is committed
- A test case is added in tests/dashed_line_issue35.py
- The wiki documentation page is created.
- The issue status is changed to Fixed.
Original comment by dieterle...@gmail.com
on 8 Mar 2013 at 8:02
Original issue reported on code.google.com by
dieterle...@gmail.com
on 18 Dec 2012 at 9:09