Reverted to old method names/signatures for wx.DC, updated lib and

demo to match.  Also fixed some deprecation warnings.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27049 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2004-05-02 02:41:33 +00:00
parent 019fd9d379
commit d7403ad2d1
61 changed files with 536 additions and 702 deletions

View File

@@ -610,13 +610,13 @@ class MultiCreator(wx.Window):
# Draw outline
dc.SetPen(highlight)
dc.DrawLine((0,0), (0,h))
dc.DrawLine((0,0), (w,0))
dc.DrawLine(0,0, 0,h)
dc.DrawLine(0,0, w,0)
dc.SetPen(black)
dc.DrawLine((0,h), (w+1,h))
dc.DrawLine((w,0), (w,h))
dc.DrawLine(0,h, w+1,h)
dc.DrawLine(w,0, w,h)
dc.SetPen(shadow)
dc.DrawLine((w-1,2), (w-1,h))
dc.DrawLine(w-1,2, w-1,h)
#----------------------------------------------------------------------
@@ -692,11 +692,11 @@ def DrawSash(win,x,y,direction):
bmp = wx.EmptyBitmap(8,8)
bdc = wx.MemoryDC()
bdc.SelectObject(bmp)
bdc.DrawRectangle((-1,-1), (10,10))
bdc.DrawRectangle(-1,-1, 10,10)
for i in range(8):
for j in range(8):
if ((i + j) & 1):
bdc.DrawPoint((i,j))
bdc.DrawPoint(i,j)
brush = wx.Brush(wx.Colour(0,0,0))
brush.SetStipple(bmp)
@@ -726,8 +726,8 @@ def DrawSash(win,x,y,direction):
h = body_h
if direction == MV_HOR:
dc.DrawRectangle((x,y-2), (w,4))
dc.DrawRectangle(x,y-2, w,4)
else:
dc.DrawRectangle((x-2,y), (4,h))
dc.DrawRectangle(x-2,y, 4,h)
dc.EndDrawingOnTop()