Is there any way that when you click, for example, the buttons are all erased and some action has already been performed in an empty application. That is, the screen is cleared.

    1 answer 1

    def clear_widgets(): for w in widgets: w.clear() button_clear = QPushButton('очистить') button_clear.clicked.connect(clear_widgets)