Refactoring code and project structure. Generate new UI_Classes.py

This commit is contained in:
Jarosław Wieczorek 2020-12-06 09:14:05 +01:00
parent fb96980719
commit 1745cd9d92
6 changed files with 12 additions and 3 deletions

View File

@ -1,9 +1,9 @@
#!/bin/bash
for file in $(ls ./ui_files)
for file in $(ls ./src/ui)
do
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;

View File

View File

@ -0,0 +1,9 @@
from pyqt5 import *
from src.python.ui import Ui_MainWindow
class MainWindow(Ui_MainWindow):
def init(self):
super()

View File

View File

@ -1,6 +1,6 @@
# -*- 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
#