Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6,575 changes: 6,575 additions & 0 deletions PEP8_patch.diff

Large diffs are not rendered by default.

16 changes: 8 additions & 8 deletions db/models/__init__.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
from .base import Base
from .client import Client
from .holiday import Holiday
from .price import Price
from .sale import Sale
from .ticket import Ticket
from .user import User
from .workday import Workday
from .base import Base as Base
from .client import Client as Client
from .holiday import Holiday as Holiday
from .price import Price as Price
from .sale import Sale as Sale
from .ticket import Ticket as Ticket
from .user import User as User
from .workday import Workday as Workday
3 changes: 2 additions & 1 deletion db/models/sale.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
from datetime import datetime

from sqlalchemy import DateTime, ForeignKey, Integer, SmallInteger, String, Text
from sqlalchemy import (DateTime, ForeignKey, Integer, SmallInteger, String,
Text)
from sqlalchemy.orm import Mapped, mapped_column, relationship

from db.models.base import Base
Expand Down
15 changes: 3 additions & 12 deletions design/logic/client.py
Original file line number Diff line number Diff line change
@@ -1,16 +1,7 @@
from PySide6.QtCore import QCoreApplication, QMetaObject, QRect, Qt
from PySide6.QtWidgets import (
QComboBox,
QDateEdit,
QFormLayout,
QGridLayout,
QHBoxLayout,
QLabel,
QLineEdit,
QPushButton,
QToolBox,
QWidget,
)
from PySide6.QtWidgets import (QComboBox, QDateEdit, QFormLayout, QGridLayout,
QHBoxLayout, QLabel, QLineEdit, QPushButton,
QToolBox, QWidget)


class Ui_Dialog_Client(object):
Expand Down
25 changes: 5 additions & 20 deletions design/logic/main_form.py
Original file line number Diff line number Diff line change
@@ -1,25 +1,10 @@
from PySide6.QtCore import QCoreApplication, QMetaObject, QRect, QSize, Qt
from PySide6.QtGui import QAction, QFont
from PySide6.QtWidgets import (
QAbstractItemView,
QCheckBox,
QComboBox,
QDateEdit,
QFrame,
QGroupBox,
QHBoxLayout,
QLabel,
QLineEdit,
QMenu,
QMenuBar,
QPushButton,
QRadioButton,
QStatusBar,
QTabWidget,
QTableWidget,
QTableWidgetItem,
QWidget,
)
from PySide6.QtWidgets import (QAbstractItemView, QCheckBox, QComboBox,
QDateEdit, QFrame, QGroupBox, QHBoxLayout,
QLabel, QLineEdit, QMenu, QMenuBar, QPushButton,
QRadioButton, QStatusBar, QTableWidget,
QTableWidgetItem, QTabWidget, QWidget)


class Ui_MainWindow(object):
Expand Down
2 changes: 1 addition & 1 deletion design/logic/pay.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from PySide6.QtCore import QCoreApplication, QMetaObject, QRect, QSize, Qt
from PySide6.QtGui import QFont
from PySide6.QtWidgets import QGroupBox, QLabel, QPushButton, QCheckBox
from PySide6.QtWidgets import QCheckBox, QGroupBox, QLabel, QPushButton


class Ui_Dialog_Pay(object):
Expand Down
34 changes: 23 additions & 11 deletions design/logic/progress_dialog.py
Original file line number Diff line number Diff line change
@@ -1,38 +1,50 @@
from PySide6.QtCore import (QCoreApplication, QMetaObject, QSize, Qt)
from PySide6.QtWidgets import (QLabel, QProgressBar,
QVBoxLayout)
from PySide6.QtCore import QCoreApplication, QMetaObject, QSize, Qt
from PySide6.QtWidgets import QLabel, QProgressBar, QVBoxLayout


class Ui_ProgressDialog(object):
def setupUi(self, ProgressDialog):
if not ProgressDialog.objectName():
ProgressDialog.setObjectName(u"ProgressDialog")
ProgressDialog.setObjectName("ProgressDialog")
ProgressDialog.resize(300, 127)
ProgressDialog.setMinimumSize(QSize(300, 100))
self.verticalLayout = QVBoxLayout(ProgressDialog)
self.verticalLayout.setObjectName(u"verticalLayout")
self.verticalLayout.setObjectName("verticalLayout")
self.label_status = QLabel(ProgressDialog)
self.label_status.setObjectName(u"label_status")
self.label_status.setObjectName("label_status")
self.label_status.setAlignment(Qt.AlignmentFlag.AlignCenter)

self.verticalLayout.addWidget(self.label_status)

self.progressBar = QProgressBar(ProgressDialog)
self.progressBar.setObjectName(u"progressBar")
self.progressBar.setObjectName("progressBar")
self.progressBar.setMinimum(0)
self.progressBar.setMaximum(100)
self.progressBar.setValue(0)
self.progressBar.setTextVisible(True)

self.verticalLayout.addWidget(self.progressBar)


self.retranslateUi(ProgressDialog)

QMetaObject.connectSlotsByName(ProgressDialog)

# setupUi

def retranslateUi(self, ProgressDialog):
ProgressDialog.setWindowTitle(QCoreApplication.translate("ProgressDialog", u"\u0421\u043e\u0445\u0440\u0430\u043d\u0435\u043d\u0438\u0435...", None))
self.label_status.setText(QCoreApplication.translate("ProgressDialog", u"\u041d\u0430\u0447\u0430\u043b\u043e \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0438...", None))
# retranslateUi
ProgressDialog.setWindowTitle(
QCoreApplication.translate(
"ProgressDialog",
"\u0421\u043e\u0445\u0440\u0430\u043d\u0435\u043d\u0438\u0435...",
None,
)
)
self.label_status.setText(
QCoreApplication.translate(
"ProgressDialog",
"\u041d\u0430\u0447\u0430\u043b\u043e \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0438...",
None,
)
)

# retranslateUi
16 changes: 3 additions & 13 deletions design/logic/sale.py
Original file line number Diff line number Diff line change
@@ -1,18 +1,8 @@
from PySide6.QtCore import QCoreApplication, QMetaObject, QRect, QSize, Qt
from PySide6.QtGui import QFont
from PySide6.QtWidgets import (
QAbstractItemView,
QCheckBox,
QComboBox,
QDateEdit,
QFrame,
QGroupBox,
QLabel,
QLineEdit,
QPushButton,
QTableWidget,
QTableWidgetItem,
)
from PySide6.QtWidgets import (QAbstractItemView, QCheckBox, QComboBox,
QDateEdit, QFrame, QGroupBox, QLabel, QLineEdit,
QPushButton, QTableWidget, QTableWidgetItem)


class Ui_Dialog_Sale(object):
Expand Down
Loading