示例#1
0
 def browse_directory(self):
     mainDirectory = check_os()
     currentFileDialog = OpenFileDialog()
     fileName, filetype= currentFileDialog.open_file(self, caption="选取文件", directory=mainDirectory, filter="Excel Files (*.xlsx)")
     if fileName != "":
         self.fileName = fileName
         self.dataShow01Edit.setText(self.fileName)
示例#2
0
 def browse_target_data_directory(self): ## TODO
     mainDirectory = check_os()
     # 打开文件选择对话框
     currentFileDialog = OpenFileDialog()
     fileName, filetype= currentFileDialog.open_file(self, caption="选取文件", directory=mainDirectory, filter="Text Files (*.txt)")
     if fileName != "":
         self.targetDataFileName = fileName
         self.targetDataDirectoryLineEdit.setText(self.targetDataFileName)
示例#3
0
 def browse_directory(self):
     mainDirectory = check_os()
     currentFileDialog = OpenFileDialog()
     fileName, filetype= currentFileDialog.open_file(self, caption="选取文件", directory=mainDirectory, filter="Excel Files (*.xlsx)")
     if fileName != "":
         self.fileName = fileName
         self.directoryLineEdit.setText(self.fileName)
         self.put_the_data_into_table()
         self.plot_the_data()
示例#4
0
 def browse_scanning_data_directory(self): ## TODO
     mainDirectory = check_os()
     # 打开文件选择对话框
     currentFileDialog = OpenFileDialog()
     filename, filetype= currentFileDialog.open_file(self, caption="选取文件", directory=mainDirectory, filter="Text Files (*.txt)")
     if filename != "":
         self.scanningDataFileName = filename
         self.scanningDataDirectoryLineEdit.setText(self.scanningDataFileName)
     self.hasDoDenoising = False