heat_transfer_gui.py
def clear_layout(self, layout) -> None:
        """
        Completely empties the inputted layout, and makes it ready for
            new information.

        Args:
            layout ... name of the layout which should be cleared
        """

        while layout.count():
            child = layout.takeAt(0)
            if child.widget() is not None:
                child.widget().deleteLater()
            elif child.layout() is not None:
                self.clear_layout(child.layout())

        Completely empties the inputted layout, and makes it ready for
            new information.

        Args:
            layout ... name of the layout which should be cleared
        
Completely empties the inputted layout, and makes it ready for
new information.

layout ... name of the layout which should be cleared
Completely empties the inputted layout and makes it ready for new information . layout ... name of the layout which should be cleared
def clear_layout(self, layout) -> None:
        while layout.count():
            child = layout.takeAt(0)
            if child.widget() is not None:
                child.widget().deleteLater()
            elif child.layout() is not None:
                self.clear_layout(child.layout())
def clear_layout ( self , layout ) -> None : while layout . count ( ) : child = layout . takeAt ( 0 ) if child . widget ( ) is not None : child . widget ( ) . deleteLater ( ) elif child . layout ( ) is not None : self . clear_layout ( child . layout ( ) )
Completely empties the inputted layout, and makes it ready for
new information.
Completely empties the inputted layout and makes it ready for new information .
"""
        Completely empties the inputted layout, and makes it ready for
            new information.

        Args:
            layout ... name of the layout which should be cleared
        """
self
layout