heat_transfer_gui.py
def add_smoothing_options(self, parent_layout) -> None:
        """
        Including the options for smoothing the final result

        Args:
            parent_layout ... into which layout we should include everything
        """

        # Creating all layouts (rows) we want to generate
        self.smooth_layout_labels = QHBoxLayout()
        self.smooth_layout_buttons = QHBoxLayout()
        self.smooth_alforithm_choice = QGroupBox("Smoothing algorithm")
        self.smooth_radio_choice_layout = QVBoxLayout()
        self.smooth_layout_radios = QHBoxLayout()

        # Creating the label and input for window length
        window_length_label = QLabel("Window length: ")
        window_length_label.setFont(QFont("Times", 15, QFont.Bold))

        # Creating the input, setting its font and a default value
        self.window_length_input = QLineEdit()
        self.window_length_input.setFont(QFont("Times", 15, QFont.Bold))
        self.window_length_input.setText("3")

        # Creating the controlling buttons
        smooth_btn = QPushButton("Smooth", self)
        smooth_btn.clicked.connect(lambda: self.send_smoothing_option("smooth"))

        back_btn = QPushButton("Back", self)
        back_btn.clicked.connect(lambda: self.send_smoothing_option("back"))

        finish_btn = QPushButton("Finish", self)
        finish_btn.clicked.connect(lambda: self.send_smoothing_option("finish"))

        self.smooth_choice_moving_avg = QRadioButton("Moving average")
        self.smooth_choice_savgol = QRadioButton("Savgol")
        self.smooth_choice_moving_avg.setChecked(True)

        # Including all the widgets into their appropriate layouts (rows)
        self.smooth_layout_labels.addWidget(window_length_label)
        self.smooth_layout_labels.addWidget(self.window_length_input)
        self.smooth_layout_buttons.addWidget(smooth_btn)
        self.smooth_layout_buttons.addWidget(back_btn)
        self.smooth_layout_buttons.addWidget(finish_btn)
        self.smooth_radio_choice_layout.addWidget(self.smooth_choice_moving_avg)
        self.smooth_radio_choice_layout.addWidget(self.smooth_choice_savgol)
        self.smooth_alforithm_choice.setLayout(self.smooth_radio_choice_layout)

        self.smooth_layout_radios.addWidget(self.smooth_alforithm_choice)

        # Including all the layouts in chosen order into the parent layout
        parent_layout.addLayout(self.smooth_layout_radios)
        parent_layout.addLayout(self.smooth_layout_labels)
        parent_layout.addLayout(self.smooth_layout_buttons)

        Including the options for smoothing the final result

        Args:
            parent_layout ... into which layout we should include everything
        
Including the options for smoothing the final result
Args:
parent_layout ... into which layout we should include everything
Including the options for smoothing the final result Args : parent_layout ... into which layout we should include everything
def add_smoothing_options(self, parent_layout) -> None:
        self.smooth_layout_labels = QHBoxLayout()
        self.smooth_layout_buttons = QHBoxLayout()
        self.smooth_alforithm_choice = QGroupBox("Smoothing algorithm")
        self.smooth_radio_choice_layout = QVBoxLayout()
        self.smooth_layout_radios = QHBoxLayout()
        window_length_label = QLabel("Window length: ")
        window_length_label.setFont(QFont("Times", 15, QFont.Bold))
        self.window_length_input = QLineEdit()
        self.window_length_input.setFont(QFont("Times", 15, QFont.Bold))
        self.window_length_input.setText("3")
        smooth_btn = QPushButton("Smooth", self)
        smooth_btn.clicked.connect(lambda: self.send_smoothing_option("smooth"))
        back_btn = QPushButton("Back", self)
        back_btn.clicked.connect(lambda: self.send_smoothing_option("back"))
        finish_btn = QPushButton("Finish", self)
        finish_btn.clicked.connect(lambda: self.send_smoothing_option("finish"))
        self.smooth_choice_moving_avg = QRadioButton("Moving average")
        self.smooth_choice_savgol = QRadioButton("Savgol")
        self.smooth_choice_moving_avg.setChecked(True)
        self.smooth_layout_labels.addWidget(window_length_label)
        self.smooth_layout_labels.addWidget(self.window_length_input)
        self.smooth_layout_buttons.addWidget(smooth_btn)
        self.smooth_layout_buttons.addWidget(back_btn)
        self.smooth_layout_buttons.addWidget(finish_btn)
        self.smooth_radio_choice_layout.addWidget(self.smooth_choice_moving_avg)
        self.smooth_radio_choice_layout.addWidget(self.smooth_choice_savgol)
        self.smooth_alforithm_choice.setLayout(self.smooth_radio_choice_layout)
        self.smooth_layout_radios.addWidget(self.smooth_alforithm_choice)
        parent_layout.addLayout(self.smooth_layout_radios)
        parent_layout.addLayout(self.smooth_layout_labels)
        parent_layout.addLayout(self.smooth_layout_buttons)
def add_smoothing_options ( self , parent_layout ) -> None : self . smooth_layout_labels = QHBoxLayout ( ) self . smooth_layout_buttons = QHBoxLayout ( ) self . smooth_alforithm_choice = QGroupBox ( "Smoothing algorithm" ) self . smooth_radio_choice_layout = QVBoxLayout ( ) self . smooth_layout_radios = QHBoxLayout ( ) window_length_label = QLabel ( "Window length: " ) window_length_label . setFont ( QFont ( "Times" , 15 , QFont . Bold ) ) self . window_length_input = QLineEdit ( ) self . window_length_input . setFont ( QFont ( "Times" , 15 , QFont . Bold ) ) self . window_length_input . setText ( "3" ) smooth_btn = QPushButton ( "Smooth" , self ) smooth_btn . clicked . connect ( lambda : self . send_smoothing_option ( "smooth" ) ) back_btn = QPushButton ( "Back" , self ) back_btn . clicked . connect ( lambda : self . send_smoothing_option ( "back" ) ) finish_btn = QPushButton ( "Finish" , self ) finish_btn . clicked . connect ( lambda : self . send_smoothing_option ( "finish" ) ) self . smooth_choice_moving_avg = QRadioButton ( "Moving average" ) self . smooth_choice_savgol = QRadioButton ( "Savgol" ) self . smooth_choice_moving_avg . setChecked ( True ) self . smooth_layout_labels . addWidget ( window_length_label ) self . smooth_layout_labels . addWidget ( self . window_length_input ) self . smooth_layout_buttons . addWidget ( smooth_btn ) self . smooth_layout_buttons . addWidget ( back_btn ) self . smooth_layout_buttons . addWidget ( finish_btn ) self . smooth_radio_choice_layout . addWidget ( self . smooth_choice_moving_avg ) self . smooth_radio_choice_layout . addWidget ( self . smooth_choice_savgol ) self . smooth_alforithm_choice . setLayout ( self . smooth_radio_choice_layout ) self . smooth_layout_radios . addWidget ( self . smooth_alforithm_choice ) parent_layout . addLayout ( self . smooth_layout_radios ) parent_layout . addLayout ( self . smooth_layout_labels ) parent_layout . addLayout ( self . smooth_layout_buttons )
Including the options for smoothing the final result
Args:
parent_layout ... into which layout we should include everything
Including the options for smoothing the final result Args : parent_layout ... into which layout we should include everything
"""
        Including the options for smoothing the final result

        Args:
            parent_layout ... into which layout we should include everything
        """ # Creating all layouts (rows) we want to generate # Creating the label and input for window length # Creating the input, setting its font and a default value # Creating the controlling buttons # Including all the widgets into their appropriate layouts (rows) # Including all the layouts in chosen order into the parent layout
self
parent_layout