Lots of little bug fixes, API updates, etc.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24634 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2003-11-22 22:57:49 +00:00
parent f696721e0c
commit fd3f2efe79
46 changed files with 212 additions and 175 deletions

View File

@@ -39,7 +39,7 @@ class DoodlePad(wxWindow):
dc.SetPen(wxPen(wxBLUE, 3))
for line in self.lines:
for coords in line:
apply(dc.DrawLine, coords)
dc.DrawLineXY(*coords)
dc.EndDrawing()
@@ -71,7 +71,7 @@ class DoodlePad(wxWindow):
dc.SetPen(wxPen(wxBLUE, 3))
coords = (self.x, self.y) + event.GetPositionTuple()
self.curLine.append(coords)
apply(dc.DrawLine, coords)
dc.DrawLineXY(*coords)
self.x, self.y = event.GetPositionTuple()
dc.EndDrawing()
@@ -197,7 +197,7 @@ class DoodleViewer(wxWindow):
dc.SetPen(wxPen(wxRED, 3))
for line in self.lines:
for coords in line:
apply(dc.DrawLine, coords)
dc.DrawLineXY(*coords)
dc.EndDrawing()
#----------------------------------------------------------------------
@@ -239,7 +239,7 @@ class CustomDnDPanel(wxPanel):
rbox.Add(rb2)
box.Add(text1, 0, wxALL, 10)
box.Add(rbox, 0, wxALIGN_CENTER)
box.Add(10,90)
box.Add((10,90))
box.Add(text2, 0, wxALL, 10)
sizer.Add(box)