First working release.
Other files (not .docx) support is not guaranteed
This commit is contained in:
0
gui/modules/gui_helpers/__init__.py
Normal file
0
gui/modules/gui_helpers/__init__.py
Normal file
16
gui/modules/gui_helpers/other_options.py
Normal file
16
gui/modules/gui_helpers/other_options.py
Normal file
@@ -0,0 +1,16 @@
|
||||
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()
|
||||
Reference in New Issue
Block a user