Open alexbjorling opened 5 years ago
I found ImageViewMainWindow
. It looks to provide the data on the toolbar. Does it fit your needs?
Else, I think it would be better to stop using constructor attributes and provide the same feature as a proper getter/setter. But a small fix as your requested makes sens. I think we have to ask feed back from @t20100 first.
I found
ImageViewMainWindow
. It looks to provide the data on the toolbar. Does it fit your needs?
Is that a silx
class?
I ended up doing the same hack as above, and in the ImageView
constructor I did this,
self._positionWidget = tools.PositionInfo(plot=self, converters=posInfo)
self.statusBar().addWidget(self._positionWidget)
Then since it's a live viewer, where the image might change while the mouse is still, this gets done repeatedly,
self._positionWidget.updateInfo()
Else, I think it would be better to stop using constructor attributes and provide the same feature as a proper getter/setter.
Exactly!
ImageViewMainWindow
was initially an example of using ImageView
.
And, yes it's better not to use constructor parameters and add getter/setters, it's more Qt-ish and more versatile. I'll look at that.
To me it is fine to compose your GUI with the widgets you need (rather than a widget with everything and then disabling what you don't need), but we can add getter for retrieving the PositionInfo
widget of PlotWindow
and allowing to update it's "converters" and to toggle its visibility.
Also it would be good to have a smarter PositionInfo
which automatically updates when the data changes (probably as a mode that can be turned off).
I have a much used
ImageView
application which displays live feeds from detectors. My users are asking for the image value to be displayed in the status bar when hovering with the mouse. For applications based directly onPlotWindow
, I've been using some trick which I probably found in the docs,but
ImageView
setsposition=False
in its constructor. Is there some smart way to accomplish mouseover values, other than overriding the wholeImageView
constructor?