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.
def clear_widgets(): for w in widgets: w.clear() button_clear = QPushButton('очистить') button_clear.clicked.connect(clear_widgets)
Source: https://ru.stackoverflow.com/questions/668296/More articles:The problem with vector images on Android 4Different local file versions in GITHow to prescribe in js to select something in each menu and fill the background of the cell with a different color?How to get the result of a SQL queryJava keycode to symbolSorting a two-dimensional array using the Arrays.sort () method;An error occurs when trying to call a value as a function.Its button in the dialog fragmentWhat locks are needed in these scenariosWhat is the -s flag in gcc for?All Articles