import os
import sys
from PyQt5 import QtWidgets
from PyQt5.QtWidgets import QFormLayout, QRadioButton
from PyQt5.QtWidgets import QFileDialog
from create_lut import LutGenerator
class MyWindow(QtWidgets.QWidget):
def __init__(self):
super(MyWindow, self).__init__()
# 设计两个QPushButton按钮
self.chose_lut_button = QtWidgets.QPushButton()
self.chose_lut_button.setObjectName("GetPathButton")
self.chose_lut_button.setText("选取.cube文件")
self.running_button = QtWidgets.QPushButton()
self.running_button.setObjectName('runningButton')
self.running_button.setText('运行')
# 用于输出代码运行信息
self.log_TextEdit = QtWidgets.QTextEdit()
# 用于保存选取文件路径
self.src_lut_path = None
def main_window(self):
self.setWindowTitle("选取文件")
form_layout = QFormLayout()
#