Skip to content

Commit

Permalink
substitute the images of the table.
Browse files Browse the repository at this point in the history
  • Loading branch information
DREAMXFAR committed Aug 26, 2021
1 parent ed29799 commit b8e5c9d
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 8 deletions.
Binary file added ChangeDetection_UI/img/table1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added ChangeDetection_UI/img/table2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added ChangeDetection_UI/img/table3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
24 changes: 16 additions & 8 deletions ChangeDetection_UI/mainWin.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,12 +190,12 @@ def recordShow_1(self):

def recordShow_2(self):
# 设置窗口对象
reswidget = QGroupBox('统计结果记录', self)
reswidget = QGroupBox('数据分析结果', self)
# 设置布局
resLayout = QGridLayout(reswidget)
# 结果显示
self.textShow_2 = QTextEdit(reswidget)
self.textShow_2.setText('#统计结果#')
self.textShow_2.setText('#数据分析#')
resLayout.addWidget(self.textShow_2)
# 添加布局
reswidget.setLayout(resLayout)
Expand All @@ -210,7 +210,7 @@ def recordShow_3(self):
# 结果显示
self.textShow_3 = QTextEdit(reswidget)
self.textShow_3.resize(300, 100)
self.textShow_3.setText('#变化区域属性#')
self.textShow_3.setText('#统计结果#')
resLayout.addWidget(self.textShow_3)
# 添加布局
reswidget.setLayout(resLayout)
Expand All @@ -223,21 +223,29 @@ def tableShow(self):
# 设置布局
tableLayout = QGridLayout()
# 图像
table_image = QPixmap(r'img/table.jpeg')
table_image = table_image.scaled(400, 128)
table_image1 = QPixmap(r'img/table1.png')
table_image1 = table_image1.scaled(400,200)
# 设置图像
tableMap1 = QLabel(tablewidget)
tableMap1.setPixmap(table_image)
tableMap1.setPixmap(table_image1)
tableMap1.setScaledContents(True)
tableLayout.addWidget(tableMap1, 1, 1, 1, 1)

# 图像
table_image2 = QPixmap(r'img/table2.png')
table_image2 = table_image2.scaled(400, 200)
# 设置图像
tableMap2 = QLabel(tablewidget)
tableMap2.setPixmap(QPixmap(table_image))
tableMap2.setPixmap(QPixmap(table_image2))
tableMap2.setScaledContents(True)
tableLayout.addWidget(tableMap2, 2, 1, 1, 1)

# 图像
table_image3 = QPixmap(r'img/table3.png')
table_image3 = table_image3.scaled(400, 200)
# 设置图像
tableMap3 = QLabel(tablewidget)
tableMap3.setPixmap(QPixmap(table_image))
tableMap3.setPixmap(QPixmap(table_image3))
tableMap3.setScaledContents(True)
tableLayout.addWidget(tableMap3, 3, 1, 1, 1)
# 添加布局
Expand Down
Binary file modified ChangeDetection_UI/pixmap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit b8e5c9d

Please sign in to comment.