Files
D0CXUN7R4C3/gui/modules/gui_helpers/other_options.py
BarsTiger 13b48be802 First working release.
Other files (not .docx) support is not guaranteed
2023-02-06 21:40:47 +02:00

17 lines
534 B
Python

from gui.gui import Ui_MainWindow
from PySide6 import QtCore
def on_other_clicked(ui: Ui_MainWindow):
ui.expand_other_options_button.hide()
Ui_MainWindow.other_animation = QtCore.QPropertyAnimation(ui.other_properties_widget, b"maximumHeight")
Ui_MainWindow.other_animation.setDuration(300)
Ui_MainWindow.other_animation.setStartValue(0)
Ui_MainWindow.other_animation.setEndValue(500)
Ui_MainWindow.other_animation.setEasingCurve(QtCore.QEasingCurve.InOutQuart)
Ui_MainWindow.other_animation.start()