(self)
Clear the widget.
Clear the widget.
Clear the widget .
def clear(self):
        """Clear the widget."""
        for i in reversed(range(self.__layout.count())):
            item = self.__layout.itemAt(i)
            self.__layout.removeAt(i)
            if item is not None and item.graphicsItem() is not None:
                remove_item(item.graphicsItem())

        self.heatmap_widget_grid = []
        self.row_annotation_widgets = []
        self.col_annotation_widgets = []
        self.col_dendrograms = []
        self.row_dendrograms = []
        self.right_side_colors = []
        self.top_side_colors = []
        self.heatmap_colormap_legend = None
        self.bottom_legend_container = None
        self.parts = None
        self.updateGeometry()
def clear ( self ) : for i in reversed ( range ( self . __layout . count ( ) ) ) : item = self . __layout . itemAt ( i ) self . __layout . removeAt ( i ) if item is not None and item . graphicsItem ( ) is not None : remove_item ( item . graphicsItem ( ) ) self . heatmap_widget_grid = [ ] self . row_annotation_widgets = [ ] self . col_annotation_widgets = [ ] self . col_dendrograms = [ ] self . row_dendrograms = [ ] self . right_side_colors = [ ] self . top_side_colors = [ ] self . heatmap_colormap_legend = None self . bottom_legend_container = None self . parts = None self . updateGeometry ( )