Exemplo n.º 1
0
    def fill_paramset_ui(self, text1, text2) -> None:
        """
        Fills the UI with the values from a parameter set.
        :param text1: the text representation of the first param set
        :param text2: the text representation of the second param set
        """
        params = self.presenter.get_paramset(text1, text2)

        if params:
            self.lineedit_overlap.setText(float_to_str(params.overlap))
            self.lineedit_window_size.setText(float_to_str(params.window))
            self.lineedit_confidence_level.setText(
                float_to_str(params.confidence_level))
            self.lineedit_propagation_const.setText(
                float_to_str(params.propagation_const))
            self.lineedit_order.setText(float_to_str(params.order))
Exemplo n.º 2
0
    def on_crosshair_drawn(self, x: float, y: float) -> None:
        x = float_to_str(x)
        y = float_to_str(y)

        self.lineedit_freq_x.setText(x)
        self.lineedit_freq_y.setText(y)
Exemplo n.º 3
0
 def setup_combo(self):
     values = self.settings.get_recent_freq()
     if values:
         self.combo_recent.addItems([float_to_str(f) for f in values])
     else:
         self.disable_recent_freq()