forked from PulseFocusPlatform/PulseFocusPlatform
“更新”
This commit is contained in:
parent
161a76d37c
commit
b8f88338db
2
main.py
2
main.py
|
@ -229,11 +229,9 @@ class mywindow(QtWidgets.QMainWindow, Ui_MainWindow):
|
|||
|
||||
def import_pic(self):
|
||||
self.Video_fname = None
|
||||
# 打开图像读取对话框
|
||||
self.path1 = os.path.abspath(__file__)
|
||||
self.path1 = self.path1.strip('main.py')
|
||||
print(self.path1)
|
||||
|
||||
# 打开图片读取对话框进行选择
|
||||
self.Img_fname, _ = QFileDialog.getOpenFileName(self, '打开图片', '.', '图片文件(*.jpg *.png)')
|
||||
self.label_movie.setPixmap(QtGui.QPixmap(self.Img_fname))
|
||||
|
|
Loading…
Reference in New Issue