def editSelectedMedia(self): multiUi = Preferences(QMediaLayout.__mediaSettingWidgets, check=True) multiUi.onApply.connect(self.__selectedEditApply) multiUi.exec_()
def editMedia(self, media): confUi = Preferences(QMediaLayout.__mediaSettingWidgets, media.conf) confUi.onApply.connect(lambda conf: self.__editApply(media, conf)) confUi.exec_()