From e7d0a4140bd616d07d67dbc3be0826d7b0342693 Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Wed, 12 Jun 2002 19:53:17 +0000 Subject: [PATCH] little demo updates git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15812 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- wxPython/demo/CustomDragAndDrop.py | 2 +- wxPython/demo/wxGLCanvas.py | 8 ++++---- wxPython/demo/wxStaticText.py | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/wxPython/demo/CustomDragAndDrop.py b/wxPython/demo/CustomDragAndDrop.py index fd416a29b7..46c3ed5240 100644 --- a/wxPython/demo/CustomDragAndDrop.py +++ b/wxPython/demo/CustomDragAndDrop.py @@ -107,7 +107,7 @@ class DoodlePad(wxWindow): dropSource = wxDropSource(self) dropSource.SetData(data) self.log.WriteText("Begining DragDrop\n") - result = dropSource.DoDragDrop(true) + result = dropSource.DoDragDrop(wxDrag_AllowMove) self.log.WriteText("DragDrop completed: %d\n" % result) if result == wxDragMove: self.lines = [] diff --git a/wxPython/demo/wxGLCanvas.py b/wxPython/demo/wxGLCanvas.py index 2fff582751..0374cf50ef 100644 --- a/wxPython/demo/wxGLCanvas.py +++ b/wxPython/demo/wxGLCanvas.py @@ -85,9 +85,9 @@ else: EVT_ERASE_BACKGROUND(self, self.OnEraseBackground) EVT_SIZE(self, self.OnSize) EVT_PAINT(self, self.OnPaint) - #EVT_LEFT_DOWN(self, self.OnMouseDown) # needs fixing... - #EVT_LEFT_UP(self, self.OnMouseUp) - #EVT_MOTION(self, self.OnMouseMotion) + EVT_LEFT_DOWN(self, self.OnMouseDown) # needs fixing... + EVT_LEFT_UP(self, self.OnMouseUp) + EVT_MOTION(self, self.OnMouseMotion) def OnEraseBackground(self, event): pass # Do nothing, to avoid flashing on MSW. @@ -116,7 +116,7 @@ else: if evt.Dragging() and evt.LeftIsDown(): self.x, self.y = self.lastx, self.lasty self.x, self.y = evt.GetPosition() - self.Refresh() + self.Refresh(false) diff --git a/wxPython/demo/wxStaticText.py b/wxPython/demo/wxStaticText.py index 6d047bd0e7..ff3d3c70ee 100644 --- a/wxPython/demo/wxStaticText.py +++ b/wxPython/demo/wxStaticText.py @@ -14,7 +14,7 @@ class TestPanel(wxPanel): wxPoint(20, 30)) wxStaticText(self, -1, "Is this yellow?", - wxPoint(20, 70)).SetBackgroundColour(wxNamedColour('Yellow')) + wxPoint(20, 70)).SetBackgroundColour('Yellow') str = "This is a different font." text = wxStaticText(self, -1, str, wxPoint(20, 100)) -- 2.45.2