def keepAspectRatio(self, state: int) -> None:
self.parent.parent.mpvWidget.mpv.set_option('keepaspect', state == Qt.Checked)
self.parent.settings.setValue('aspectRatio', 'keep' if state == Qt.Checked else 'stretch')
self.parent.parent.keepRatio = (state == Qt.Checked)
评论列表
文章目录