I'm trying to copy the checked rows from one objectlistviewtable to another. I've tried a lot of thing. I've tried
GetobjectsAddPlotList = self.notebook.PageOne.tempmeasurements.GetSelectedObjects()
GetobjectsAddPlotList = self.notebook.PageOne.tempmeasurements.GetCheckedObjects()
I've tried a workaround by using a forloop to see which object is checked and put them in another variable. But I don't see a thing in my second table.
Tx in advance
This is what I have:
def on_add_to_plotlist(self, event):
GetobjectsAddPlotList = self.notebook.PageOne.tempmeasurements.GetObjects()
pub.sendMessage(self.notify_channel,
Container(type="EVT_ADD_TO_PLOTLIST", origin=self.notebook.PageOne.tempmeasurements, data=GetobjectsAddPlotList))
def on_message(self, message):
print message.data.type
if message.data.type =="EVT_ADD_TO_PLOTLIST":
#import pdb; pdb.set_trace()
AddToPlotListData = message.data.data
#print AddToPlotListData
self.view.notebook.PageOne.plotmeasurements.SetObjects([AddToPlotListData])
I found a solution, I don't know if it is the best one: