heat_transfer_gui.py
def open_file_name_dialog(self):
        """
        Opens a dialog for the choice of a data file
        """

        options = QFileDialog.Options()
        options |= QFileDialog.DontUseNativeDialog
        file_path, _ = QFileDialog.getOpenFileName(self,
            "Choose a data file", "", "CSV Files (*.csv)", options=options)
        if file_path:
            # Storing the new data file path
            self.current_data_file = file_path
            # Extracting only the name of the file, without the whole path
            file_name = os.path.basename(file_path)
            print(file_name)

            # Displaying this into the input to provide visible feedback
            self.data_file_input.setText(file_name)

        Opens a dialog for the choice of a data file
        
Opens a dialog for the choice of a data file
Opens a dialog for the choice of a data file
def open_file_name_dialog(self):
        options = QFileDialog.Options()
        options |= QFileDialog.DontUseNativeDialog
        file_path, _ = QFileDialog.getOpenFileName(self,
            "Choose a data file", "", "CSV Files (*.csv)", options=options)
        if file_path:
            self.current_data_file = file_path
            file_name = os.path.basename(file_path)
            print(file_name)
            self.data_file_input.setText(file_name)
def open_file_name_dialog ( self ) : options = QFileDialog . Options ( ) options |= QFileDialog . DontUseNativeDialog file_path , _ = QFileDialog . getOpenFileName ( self , "Choose a data file" , "" , "CSV Files (*.csv)" , options = options ) if file_path : self . current_data_file = file_path file_name = os . path . basename ( file_path ) print ( file_name ) self . data_file_input . setText ( file_name )
Opens a dialog for the choice of a data file
Opens a dialog for the choice of a data file
"""
        Opens a dialog for the choice of a data file
        """ # Storing the new data file path # Extracting only the name of the file, without the whole path # Displaying this into the input to provide visible feedback
self