Closed rodolakis closed 1 year ago
Find some buttons here: https://github.com/prjemian/moxy/tree/master/src/moxy/resources
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('')
Instead of os.path.join(forms_path, 'delete.bmp')
, we might use resources / "delete.bmp"
where resources
is a pathlib object to that directory.
Did not yet connect the signal from the new button.
Having to press enter in another research field is not very intuitive