Refactoring code and project structure. Generate new UI_Classes.py
This commit is contained in:
parent
fb96980719
commit
1745cd9d92
@ -1,9 +1,9 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
|
||||||
for file in $(ls ./ui_files)
|
for file in $(ls ./src/ui)
|
||||||
do
|
do
|
||||||
output_file=$(echo $file | sed -e 's/\..*$//')
|
output_file=$(echo $file | sed -e 's/\..*$//')
|
||||||
pipenv run python -m PyQt5.uic.pyuic -x ./ui_files/$file -o ./class_files/$output_file'_ui.py'
|
pipenv run python -m PyQt5.uic.pyuic -x ./src/ui/$file -o ./src/python/ui/$output_file'_ui.py'
|
||||||
|
|
||||||
done;
|
done;
|
||||||
|
0
src/python/classes/__init__.pu
Normal file
0
src/python/classes/__init__.pu
Normal file
9
src/python/classes/mainwindow.py
Normal file
9
src/python/classes/mainwindow.py
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
from pyqt5 import *
|
||||||
|
from src.python.ui import Ui_MainWindow
|
||||||
|
|
||||||
|
class MainWindow(Ui_MainWindow):
|
||||||
|
|
||||||
|
def init(self):
|
||||||
|
super()
|
||||||
|
|
||||||
|
|
0
src/python/ui/__init__.py
Normal file
0
src/python/ui/__init__.py
Normal file
@ -1,6 +1,6 @@
|
|||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
# Form implementation generated from reading ui file './ui_files/mainwindow.ui'
|
# Form implementation generated from reading ui file './src/ui/mainwindow.ui'
|
||||||
#
|
#
|
||||||
# Created by: PyQt5 UI code generator 5.15.2
|
# Created by: PyQt5 UI code generator 5.15.2
|
||||||
#
|
#
|
Loading…
Reference in New Issue
Block a user