From 2d241d0fb73d220ada45529dc53cd649fd2b803a Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Thu, 14 May 2020 16:26:12 -0700 Subject: [PATCH] Make some columns editable --- demo/DVC_ListCtrl.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/demo/DVC_ListCtrl.py b/demo/DVC_ListCtrl.py index 71af3c6a..53433607 100644 --- a/demo/DVC_ListCtrl.py +++ b/demo/DVC_ListCtrl.py @@ -23,9 +23,9 @@ class TestPanel(wx.Panel): # Give it some columns. # The ID col we'll customize a bit: dvlc.AppendTextColumn('id', width=40) - dvlc.AppendTextColumn('artist', width=170) - dvlc.AppendTextColumn('title', width=260) - dvlc.AppendTextColumn('genre', width=80) + dvlc.AppendTextColumn('artist', width=170, mode=dv.DATAVIEW_CELL_EDITABLE) + dvlc.AppendTextColumn('title', width=260, mode=dv.DATAVIEW_CELL_EDITABLE) + dvlc.AppendTextColumn('genre', width=80, mode=dv.DATAVIEW_CELL_EDITABLE) # Load the data. Each item (row) is added as a sequence of values # whose order matches the columns