Hello!
I am trying to develop a python scripted module using Sequences extension. I already successfully create a sequence (although it appears as a vtkMRMLScalarVolumeNode) and I can display the sequence by using the Sequence Browser Toolbar of 3D slicer 4.11.
I want to insert the sequence browser toolbar in my own module but it does not activate when the sequence is created.
Can you explained me what is missing or what is wrong in my code please? Thank you!
self.sequenceBrowserToolbarButton = slicer.qMRMLSequenceBrowserToolBar()
fourDCTFormLayout.addRow(self.sequenceBrowserToolbarButton)
self.sequenceBrowserToolbarButton.connect('activeBrowserNodeChanged(vtkMRMLNode*)', self.oncreateSequenceButton)
def oncreateSequenceButton(self):
exitString = logic.createSequence(patient.fourDCT)
if exitString:
self.qtMessage(exitString)
return