Update of /cvsroot/pywin32/pywin32/Pythonwin/pywin/scintilla
In directory vz-cvs-2.sog:/tmp/cvs-serv15865
Modified Files:
view.py
Log Message:
Fix printing in Python 3
Index: view.py
===================================================================
RCS file: /cvsroot/pywin32/pywin32/Pythonwin/pywin/scintilla/view.py,v
retrieving revision 1.36
retrieving revision 1.37
diff -C2 -d -r1.36 -r1.37
*** view.py 6 May 2010 16:30:20 -0000 1.36
--- view.py 24 Feb 2011 23:48:48 -0000 1.37
***************
*** 614,618 ****
left, top, right, bottom = pInfo.GetDraw()
# Leave space at the top for the header.
! rc = (left, top + (9*metrics['tmHeight'])/2, right, bottom)
pageStart = 0
maxPage = 0
--- 614,618 ----
left, top, right, bottom = pInfo.GetDraw()
# Leave space at the top for the header.
! rc = (left, top + int((9*metrics['tmHeight'])/2), right, bottom)
pageStart = 0
maxPage = 0
***************
*** 666,670 ****
dc.TextOut(right, 2*cyChar, pagenum_str)
dc.SetTextAlign(win32con.TA_LEFT)
! top = top + (7*cyChar)/2
dc.MoveTo(left, top)
dc.LineTo(right, top)
--- 666,670 ----
dc.TextOut(right, 2*cyChar, pagenum_str)
dc.SetTextAlign(win32con.TA_LEFT)
! top = top + int((7*cyChar)/2)
dc.MoveTo(left, top)
dc.LineTo(right, top)
|