Changeset 3079
- Timestamp:
- 11/29/06 20:28:35 (18 years ago)
- Location:
- pykota/trunk
- Files:
-
- 3 modified
Legend:
- Unmodified
- Added
- Removed
-
pykota/trunk/bin/pkbanner
r2909 r3079 121 121 canvas.setFillColorRGB(r, g, b) 122 122 message = "%s :" % _(label) 123 canvas.drawRightString(x, y, message)123 canvas.drawRightString(x, y, self.userCharsetToUTF8(message)) 124 124 canvas.setFont("Courier-Bold", size) 125 125 (r, g, b) = [ color + (savetoner * (1.0 - color)) for color in (1, 0, 0) ] # Red * savetoner 126 126 canvas.setFillColorRGB(r, g, b) 127 canvas.drawString(x + 0.5*cm, y, value)127 canvas.drawString(x + 0.5*cm, y, self.userCharsetToUTF8(value)) 128 128 canvas.restoreState() 129 129 return (size + 4) -
pykota/trunk/bin/pkinvoice
r3069 r3079 142 142 self.canvas.setFont("Helvetica-Bold", size) 143 143 self.canvas.setFillColorRGB(0, 0, 0) 144 self.canvas.drawRightString(xcenter, self.ypos, "%s :" % label)144 self.canvas.drawRightString(xcenter, self.ypos, "%s :" % self.userCharsetToUTF8(label)) 145 145 self.canvas.setFont("Courier-Bold", size) 146 146 self.canvas.setFillColorRGB(0, 0, 1) 147 self.canvas.drawString(xcenter + 0.5*cm, self.ypos, value)147 self.canvas.drawString(xcenter + 0.5*cm, self.ypos, self.userCharsetToUTF8(value)) 148 148 self.canvas.restoreState() 149 149 self.ypos -= (size + 4) … … 231 231 self.canvas.setFont("Helvetica-Bold", 14) 232 232 self.canvas.setFillColorRGB(0, 0, 0) 233 self.canvas.drawCentredString(xcenter, self.ypos, "%s :" % _("Here's the invoice for your printouts")) 233 msg = _("Here's the invoice for your printouts") 234 self.canvas.drawCentredString(xcenter, self.ypos, "%s :" % self.userCharsetToUTF8(msg)) 234 235 235 236 self.yorigine = self.ypos -
pykota/trunk/NEWS
r3075 r3079 24 24 - 1.25alpha17 (2006-11-27) : 25 25 26 - The code was changed to accomodate ReportLab 2.x in pkbanner 27 and pkinvoice. ReportLab v1.x is now only supported with 28 an english or C locale. 29 26 30 - pknotify now accepts the --noremote command line option to 27 31 decide what has to be done when there's no PyKotIcon running