Closed gschlafly closed 1 year ago
I created now alternative images in 5840475beec2c74a43224ee9fc7de1662ed80839 that can be used when hovering over the buttons. The buttons appeared larger than desired on the widget, so as a temporary solution I put a half-resolution image as the pixmap_pressed
variable of the PicButton
. Their file paths are shown below.
https://github.com/PolarizedLightFieldMicroscopy/napari-LF/blob/fa9ee62b354f1922f8e60c10d292042dba0f1592/src/napari_lf/_widgetLF_vals.py#L8-L18
Description
It is unclear how to toggle between the processing modes of LF Analyze and Neural Net. There is also a slight glitch to how the images are being swapped.
Screenshots
Files
Solution ideas
PointingHandCursor
ofQcursor
(https://doc.qt.io/qtforpython-5/PySide2/QtGui/QCursor.html#PySide2.QtGui.PySide2.QtGui.QCursor.setShape).It seems that by importing qtpy we gain both PyQt and PySide functionality (https://github.com/spyder-ide/qtpy).
The hovering functionality is implemented here, but no affect is observed when hovering the mouse over the button. https://github.com/PolarizedLightFieldMicroscopy/napari-LF/blob/29deddb2e54c5952cbc5cb61e9030811576b8e2f/src/napari_lf/_widgetLF_gui.py#L1970-L1984