def empty_group(): w = QWidget() QMessageBox.critical(w, w.tr("Empty group"), w.tr("The group may not be empty."))