From dd8838213d3c68203b14c133a686490d109c5db0 Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Tue, 19 Nov 2002 18:55:39 +0000 Subject: [PATCH] little demo tweaks git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@17915 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- wxPython/demo/GridSimple.py | 2 +- wxPython/demo/wxListCtrl.py | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/wxPython/demo/GridSimple.py b/wxPython/demo/GridSimple.py index b8d77892f2..33e6153c28 100644 --- a/wxPython/demo/GridSimple.py +++ b/wxPython/demo/GridSimple.py @@ -28,7 +28,7 @@ class SimpleGrid(wxGrid): ##, wxGridAutoEditMixin): self.SetCellBackgroundColour(2, 2, wxCYAN) self.SetReadOnly(3, 3, true) - self.SetCellEditor(5, 0, wxGridCellNumberEditor()) + self.SetCellEditor(5, 0, wxGridCellNumberEditor(1,1000)) self.SetCellValue(5, 0, "123") self.SetCellEditor(6, 0, wxGridCellFloatEditor()) self.SetCellValue(6, 0, "123.34") diff --git a/wxPython/demo/wxListCtrl.py b/wxPython/demo/wxListCtrl.py index 683fdc56aa..85d3c97acc 100644 --- a/wxPython/demo/wxListCtrl.py +++ b/wxPython/demo/wxListCtrl.py @@ -191,7 +191,9 @@ class TestListCtrlPanel(wxPanel, wxColumnSorterMixin): self.x = event.GetX() self.y = event.GetY() self.log.WriteText("x, y = %s\n" % str((self.x, self.y))) - print event.GetEventObject() + item, flags = self.list.HitTest((self.x, self.y)) + if flags & wxLIST_HITTEST_ONITEM: + self.list.Select(item) event.Skip()