Updates for new/old DC method signatures, also updated setup.py for

new py2exe


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27477 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2004-05-28 04:51:08 +00:00
parent 68c0610dae
commit b68eef002d
4 changed files with 8269 additions and 10342 deletions

View File

@@ -174,7 +174,7 @@ class DoodleWindow(wx.Window):
dc.BeginDrawing()
dc.SetPen(self.pen)
pos = event.GetPosition()
coords = (self.pos, pos)
coords = (self.pos.x, self.pos.y, pos.x, pos.y)
self.curLine.append(coords)
dc.DrawLine(*coords)
self.pos = pos

File diff suppressed because it is too large Load Diff

View File

@@ -11,6 +11,7 @@ from distutils.core import setup
import py2exe
setup( name = "superdoodle",
scripts = ["superdoodle.py"]
#console = ["superdoodle.py", "doodle.py"]
windows = ["superdoodle.py", "doodle.py"]
)

View File

@@ -321,7 +321,7 @@ class ColourIndicator(wx.Window):
pen = wx.Pen(self.colour, self.thickness)
dc.BeginDrawing()
dc.SetPen(pen)
dc.DrawLine((10, sz.height/2), (sz.width-10, sz.height/2))
dc.DrawLine(10, sz.height/2, sz.width-10, sz.height/2)
dc.EndDrawing()
@@ -399,5 +399,5 @@ class DoodleApp(wx.App):
#----------------------------------------------------------------------
if __name__ == '__main__':
app = DoodleApp(0)
app = DoodleApp(redirect=True)
app.MainLoop()