Hi, I ma using UltimateListCtrl as I have some text fields, checkbox fields, dropdown fields, etc. I want to make the text fields editable (in-place edit), but cant find any examples of how to do it, I have looked through the WxPython Demo but couldn’t find an example.
Here is a small snippet of what I currently have:
self.f2 = wx.Frame(self,-1, size=(800,250))
self.watchFolderLog = ULC.UltimateListCtrl(self.f2, wx.ID_ANY, size=(800,200), agwStyle=wx.LC_REPORT
wx.LC_VRULES
wx.LC_HRULES
wx.LC_SINGLE_SEL
ULC.ULC_HAS_VARIABLE_ROW_HEIGHT)
self.watchFolderLog.InsertColumn(0, “ID”, width = 50)
self.watchFolderLog.InsertColumn(1, “Name”, width = 150)
self.watchFolderLog.InsertColumn(2, “Preset”, width = 250)
self.watchFolderLog.InsertColumn(3, “Directory”, width = 300)
self.watchFolderLog.InsertColumn(4, “Active”, width = 50)
for i in range(len(watchFolderList)):
pos = self.watchFolderLog.InsertStringItem(i, watchFolderList[i][‘ID’])
self.watchFolderLog.SetStringItem(pos, 1, watchFolderList[i][‘Name’])
self.watchFolderLog.SetStringItem(pos, 2, ‘’)
self.watchFolderLog.SetStringItem(pos, 3, watchFolderList[i][‘Directory’])
self.watchFolderLog.SetStringItem(pos, 4, ‘’)
self.presets.append(wx.Choice(self.watchFolderLog, size=(150, -1), choices=presetList))
self.Bind(wx.EVT_CHOICE, self.onActiveClick, self.presets[i])
self.presets[i].id = i
self.watchFolderLog.SetItemWindow(pos, 2, self.presets[i])
self.checkboxes.append(wx.CheckBox(self.watchFolderLog, id=i, label=“”, size=(50, 50)))
self.Bind(wx.EVT_CHECKBOX, self.onActiveClick, self.checkboxes[i])
self.checkboxes[i].id = i
self.watchFolderLog.SetItemWindow(pos, 4, self.checkboxes[i])
item = self.watchFolderLog.GetItem(i)
self.watchFolderLog.SetItem(item)
Any help would be greatly appreciated.
Kind regards.