ENLIGHTEN
Cross-platform desktop GUI for Wasatch Photonics spectrometers
Loading...
Searching...
No Matches
enlighten.ui.ImageResources.ImageResources Class Reference

Device (model) images come from enlighten/assets/uic_qrc/images/devices. More...

Public Member Functions

 __init__ (self)
 
 contains (self, name)
 

Public Attributes

list resources = []
 

Detailed Description

Device (model) images come from enlighten/assets/uic_qrc/images/devices.

However, they also have to be listed in devices.qrc. They are then exposed through Qt through QtCore.QDirIterator.Subdirectories, which is iterated in this ctor.

The final image is updated in EEPROMEditor.update_from_spec, using a pathname generated by Spectrometer.get_image_pathname.

Constructor & Destructor Documentation

◆ __init__()

enlighten.ui.ImageResources.ImageResources.__init__ ( self)

Member Function Documentation

◆ contains()

enlighten.ui.ImageResources.ImageResources.contains ( self,
name )

Member Data Documentation

◆ resources

list enlighten.ui.ImageResources.ImageResources.resources = []

The documentation for this class was generated from the following file: