def store_current_widget(self):
        """Store reference to the current selected widget."""
        ### reference the index of current color selected
        index = self.colors_editor.current_color_index

        ### reference the color widget which lies in that
        ### index in the list in self.widgets
        self.current_widget = self.widgets[index]
Store reference to the current selected widget.
nodezator/colorsman/editor/panel/main.py