add pyuic6 auto build
This commit is contained in:
parent
8f0d38ba62
commit
abd2e9cfd5
14
dev.py
14
dev.py
@ -1,9 +1,21 @@
|
||||
import shutil
|
||||
import sys
|
||||
import subprocess
|
||||
from pathlib import Path
|
||||
|
||||
sys.argv.append('--dev')
|
||||
|
||||
import flandre
|
||||
from flandre.launcher import launch_from_file
|
||||
|
||||
if __name__ == '__main__':
|
||||
|
||||
def main():
|
||||
if (pyuic6 := shutil.which('pyuic6')) is None:
|
||||
print('pyuic6 is not installed')
|
||||
return
|
||||
subprocess.run([pyuic6, '-o', flandre.PYQT / 'Main.py', flandre.PYQT / 'Main.ui'])
|
||||
launch_from_file(Path(__file__).parent / 'dev.toml')
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
main()
|
||||
|
||||
@ -2,4 +2,5 @@ from pathlib import Path
|
||||
|
||||
MODULE_FOLDER = Path(__file__).parent
|
||||
ASSETS = MODULE_FOLDER / 'assets'
|
||||
PYQT = MODULE_FOLDER / 'pyqt'
|
||||
DEV_PROJECT_FOLDER = MODULE_FOLDER.parent
|
||||
@ -1,4 +1,4 @@
|
||||
# Form implementation generated from reading ui file 'Main.ui'
|
||||
# Form implementation generated from reading ui file '/home/lambda/source/scarlet/flandre/flandre/pyqt/Main.ui'
|
||||
#
|
||||
# Created by: PyQt6 UI code generator 6.8.0
|
||||
#
|
||||
@ -431,7 +431,7 @@ class Ui_MainWindow(object):
|
||||
self.label_2.setAlignment(QtCore.Qt.AlignmentFlag.AlignCenter)
|
||||
self.label_2.setObjectName("label_2")
|
||||
self.gridLayout_5.addWidget(self.label_2, 0, 0, 1, 3)
|
||||
self.s_t_end = QtWidgets.QSlider(parent=self.centralwidget)
|
||||
self.s_t_end = QJumpSlider(parent=self.centralwidget)
|
||||
self.s_t_end.setMinimum(1)
|
||||
self.s_t_end.setMaximum(1500)
|
||||
self.s_t_end.setOrientation(QtCore.Qt.Orientation.Horizontal)
|
||||
|
||||
@ -806,7 +806,7 @@ border-radius: 7px;
|
||||
</widget>
|
||||
</item>
|
||||
<item row="4" column="1">
|
||||
<widget class="QSlider" name="s_t_end">
|
||||
<widget class="QJumpSlider" name="s_t_end">
|
||||
<property name="minimum">
|
||||
<number>1</number>
|
||||
</property>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user