I have a window which has a layout.
from PyQt5.QtGui import *
from PyQt5.QtWidgets import *
coolLayout1 = QGridlayout()
coolLayout2 = QGridLayout()
"""
[a bunch of widgets here]
"""
window.setLayout(coolLayout1) #will set the window's layout to this QGridLayout
window.setLayout(coolLayout2) #won't set the layout because it already has one
How do I "unset" the first layout so that the second one can be set instead?