I currently have a ImageView showing a Dicom image, but i don't want that histogram on the side. And with possible,move those two buttons to another place. How can I make that?
I know it's late, but for anybody trying to figure this out in the future who wants an imageview and NOT an imageitem:
Assuming you have an imageview labled imv and a boolean, show_histogram, you can toggle displaying the histogram (and the two buttons below it) with the following code.
if show_histogram:
imv.ui.histogram.show()
imv.ui.roiBtn.show()
imv.ui.menuBtn.show()
else:
imv.ui.histogram.hide()
imv.ui.roiBtn.hide()
imv.ui.menuBtn.hide()
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With