BCDA-APS / gemviz

Data visualization for tiled
https://bcda-aps.github.io/gemviz/
Other
4 stars 0 forks source link

Add refresh button for date slider #93

Closed rodolakis closed 1 year ago

rodolakis commented 1 year ago

Having to press enter in another research field is not very intuitive

prjemian commented 1 year ago

Find some buttons here: https://github.com/prjemian/moxy/tree/master/src/moxy/resources

prjemian commented 1 year ago

Here's is the old (PyQt4) code from moxy that loaded some button images. Might be easier now doing this in designer. ...

(base) prjemian@arf:~/.../src/moxy$ git grep bmp
configure.py:LOGO_FILE = 'epicslogo101.bmp'
resources/configure_pv.ui:          <pixmap>epicslogo101.bmp</pixmap>
row.py:        icon = QtGui.QIcon(os.path.join(forms_path, 'delete.bmp'))
row.py:        icon = QtGui.QIcon(os.path.join(forms_path, 'set.bmp'))
row.py:        icon = QtGui.QIcon(os.path.join(forms_path, 'go.bmp'))
        icon = QtGui.QIcon(os.path.join(forms_path, 'delete.bmp'))
        self.ui.deleteButton.setIcon(icon)
        self.ui.deleteButton.setText('')
prjemian commented 1 year ago

Instead of os.path.join(forms_path, 'delete.bmp'), we might use resources / "delete.bmp" where resources is a pathlib object to that directory.

prjemian commented 1 year ago

Did not yet connect the signal from the new button.