diff --git a/Modules/Scripted/DataProbe/DataProbe.py b/Modules/Scripted/DataProbe/DataProbe.py
index 6f4d5dc6e7d..f6515b66550 100644
--- a/Modules/Scripted/DataProbe/DataProbe.py
+++ b/Modules/Scripted/DataProbe/DataProbe.py
@@ -216,17 +216,11 @@ def processEvent(self, observee, event):
self.layerNames[layer].setText("")
self.layerIJKs[layer].setText("")
self.layerValues[layer].setText("")
- self.imageLabel.hide()
- self.viewerColor.hide()
- self.viewInfo.hide()
- self.viewerFrame.hide()
- self.showImageFrame.show()
+ self.displayableManagerInfo.setText("S")
+ if not self.showImageBox.isChecked():
+ self.imageLabel.hide()
return
- self.viewerColor.show()
- self.viewInfo.show()
- self.viewerFrame.show()
- self.showImageFrame.hide()
# populate the widgets
self.viewerColor.setText(" ")
@@ -275,10 +269,10 @@ def _roundInt(value):
if infoString != "":
aggregatedDisplayableManagerInfo += infoString + "
"
if aggregatedDisplayableManagerInfo != "":
+ aggregatedDisplayableManagerInfo = aggregatedDisplayableManagerInfo[:-4] # Remove the last break
self.displayableManagerInfo.text = "" + aggregatedDisplayableManagerInfo + ""
- self.displayableManagerInfo.show()
else:
- self.displayableManagerInfo.hide()
+ self.displayableManagerInfo.text = "S None"
# set image
if (not slicer.mrmlScene.IsBatchProcessing()) and sliceLogic and hasVolume and self.showImage:
@@ -474,6 +468,7 @@ def _setFixedFontFamily(widget, family=None):
col += 1
self.layerNames[layer] = qt.QLabel()
layout.addWidget(self.layerNames[layer], row, col)
+ layout.setColumnStretch(col, 100)
col += 1
self.layerIJKs[layer] = qt.QLabel()
layout.addWidget(self.layerIJKs[layer], row, col)
@@ -493,7 +488,7 @@ def _setFixedFontFamily(widget, family=None):
self.displayableManagerInfo.wordWrap = True
self.frame.layout().addWidget(self.displayableManagerInfo)
# only show if not empty
- self.displayableManagerInfo.hide()
+ self.displayableManagerInfo.text = "S"
# goto module button
self.goToModule = qt.QPushButton("->", self.frame)
@@ -512,7 +507,8 @@ def onShowImage(self, value=False):
if value:
self.imageLabel.show()
else:
- self.imageLabel.hide()
+ if not self.showImageBox.isChecked():
+ self.imageLabel.hide()
pixmap = qt.QPixmap()
self.imageLabel.setPixmap(pixmap)