src/jmLightToolkit.py
def __lightOptimizer__populateGrid(self):
        """ Populate 'lightOptimizer' grid from light attributes. """
        # Get UI values and sorted lights
        attr_ = str(self.comboBox_lightOptimizer_attributes.currentText())
        lights = self._lightOptimizer__sortingLights(attr_)

        # Return if no lights
        if lights is None:
            return None

        for item in lights:
            item_ui = JMLightOptimizerItem(item, self.__lightOptimizer__populateGrid)

            list_widget_item = QtWidgets.QListWidgetItem()
            list_widget_item.setSizeHint(item_ui.sizeHint())
            list_widget_item.setData(CUSTOM_INDEX, item)

            self.listWidget_lightOptimizer.addItem(list_widget_item)
            self.listWidget_lightOptimizer.setItemWidget(list_widget_item, item_ui)

        return lights
 Populate 'lightOptimizer' grid from light attributes. 
Populate 'lightOptimizer' grid from light attributes.
Populate ' lightOptimizer ' grid from light attributes .
def __lightOptimizer__populateGrid(self):
        attr_ = str(self.comboBox_lightOptimizer_attributes.currentText())
        lights = self._lightOptimizer__sortingLights(attr_)
        if lights is None:
            return None
        for item in lights:
            item_ui = JMLightOptimizerItem(item, self.__lightOptimizer__populateGrid)
            list_widget_item = QtWidgets.QListWidgetItem()
            list_widget_item.setSizeHint(item_ui.sizeHint())
            list_widget_item.setData(CUSTOM_INDEX, item)
            self.listWidget_lightOptimizer.addItem(list_widget_item)
            self.listWidget_lightOptimizer.setItemWidget(list_widget_item, item_ui)
        return lights
def __lightOptimizer__populateGrid ( self ) : attr_ = str ( self . comboBox_lightOptimizer_attributes . currentText ( ) ) lights = self . _lightOptimizer__sortingLights ( attr_ ) if lights is None : return None for item in lights : item_ui = JMLightOptimizerItem ( item , self . __lightOptimizer__populateGrid ) list_widget_item = QtWidgets . QListWidgetItem ( ) list_widget_item . setSizeHint ( item_ui . sizeHint ( ) ) list_widget_item . setData ( CUSTOM_INDEX , item ) self . listWidget_lightOptimizer . addItem ( list_widget_item ) self . listWidget_lightOptimizer . setItemWidget ( list_widget_item , item_ui ) return lights
Populate 'lightOptimizer' grid from light attributes.
Populate ' lightOptimizer ' grid from light attributes .
""" Populate 'lightOptimizer' grid from light attributes. """ # Get UI values and sorted lights # Return if no lights
self