Apr-02-2020, 07:25 PM
Sorry that was copied when I was trying another approach to delete them, the function in the file is :
def clearlayout(layout): for i in reversed(range(layout.count())): print(layout.itemAt(i)) layout.removeItem(layout.itemAt(i))I'm new to pyqt, thank you for you suggestion I think I need to learn that now lol