Update of /cvsroot/pythonreports/PythonReports/PythonReports
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31066
Modified Files:
Tk.py
Log Message:
fix dashed lines: option is "dash", not "stipple"
Index: Tk.py
===================================================================
RCS file: /cvsroot/pythonreports/PythonReports/PythonReports/Tk.py,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** Tk.py 6 Dec 2006 17:02:22 -0000 1.3
--- Tk.py 7 Dec 2006 11:56:49 -0000 1.4
***************
*** 2,5 ****
--- 2,6 ----
"""Tk output for PythonReports"""
"""History (most recent first):
+ 05-dec-2006 [als] fix dashed lines: option is "dash", not "stipple"
05-dec-2006 [als] fix errors and some warnings reported by pylint
07-Nov-2006 [phd] Added shebang.
***************
*** 138,148 ****
_rv = {}
if pen == "dot":
! _rv["stipple"] = "gray25"
elif pen == "dash":
! # TODO: draw bitmap
! _rv["stipple"] = "gray25"
elif pen == "dashdot":
! # TODO: draw bitmap
! _rv["stipple"] = "gray25"
elif pen == 0:
_rv["width"] = 0
--- 139,147 ----
_rv = {}
if pen == "dot":
! _rv["dash"] = ". "
elif pen == "dash":
! _rv["dash"] = "- "
elif pen == "dashdot":
! _rv["dash"] = "- . "
elif pen == 0:
_rv["width"] = 0
|