add image paths
This commit is contained in:
@ -18,6 +18,9 @@ from .widgets.production_progress_widget import ProductionProgressWidget
|
||||
from .widgets.vibration_video_widget import VibrationVideoWidget
|
||||
from .widgets.bottom_control_widget import BottomControlWidget
|
||||
|
||||
import resources.resources_rc
|
||||
from utils.image_paths import ImagePaths
|
||||
|
||||
|
||||
class MainWindow(QWidget):
|
||||
def __init__(self):
|
||||
@ -64,7 +67,7 @@ class MainWindow(QWidget):
|
||||
|
||||
# 设置主界面背景图片
|
||||
try:
|
||||
self.background_image = QImage(":/icons/images/主界面背景.png")
|
||||
self.background_image = QImage(ImagePaths.MAIN_INTERFACE_BACKGROUND)
|
||||
if self.background_image.isNull():
|
||||
raise Exception("图片为空,可能路径错误或格式不支持")
|
||||
# print("图片加载成功")
|
||||
@ -100,7 +103,7 @@ class MainWindow(QWidget):
|
||||
from busisness.blls import ArtifactBll, PDRecordBll
|
||||
artifact_dal = ArtifactBll()
|
||||
artifacts = artifact_dal.get_artifact_task()
|
||||
print("\n打印artifacts数据:")
|
||||
# print("\n打印artifacts数据:")
|
||||
for i, artifact in enumerate(artifacts):
|
||||
# 如果是数据类对象,转换为字典输出
|
||||
# print(artifact.MouldCode)
|
||||
@ -115,7 +118,7 @@ class MainWindow(QWidget):
|
||||
pdrecord_dal = PDRecordBll()
|
||||
pdrecords = pdrecord_dal.get_PD_record()
|
||||
# print(pdrecords[0].MouldCode)
|
||||
print("\n打印pdrecords数据:")
|
||||
# print("\n打印pdrecords数据:")
|
||||
for i, record in enumerate(pdrecords):
|
||||
# 如果是数据类对象,转换为字典输出
|
||||
# print(record.__dict__["MouldCode"])
|
||||
|
||||
Reference in New Issue
Block a user