示例#1
0
 def create_type_rel_ypos(self):
     # Make a double spinbox for arrow relative y-position
     y_pos_box = QW_QDoubleSpinBox()
     y_pos_box.setRange(0, 1)
     y_pos_box.setDecimals(4)
     y_pos_box.setToolTip("Relative y-position of the arrow.")
     return(y_pos_box)
示例#2
0
 def create_type_ft_arrowwidth(self):
     # Make a double spinbox for arrow tail width
     tail_length_box = QW_QDoubleSpinBox()
     tail_length_box.setRange(0, 9999999)
     tail_length_box.setDecimals(4)
     tail_length_box.setToolTip("Scaling factor for the width of the "
                                "plotted arrow tail")
     return(tail_length_box)
示例#3
0
 def create_type_ft_arrowlength(self):
     # Make a double spinbox for arrow tail length
     tail_length_box = QW_QDoubleSpinBox()
     tail_length_box.setRange(0, 9999999)
     tail_length_box.setDecimals(2)
     tail_length_box.setToolTip("Length of the plotted arrow tail relative "
                                "to the length of its head")
     return(tail_length_box)
示例#4
0
 def create_type_fh_arrowwidth(self):
     # Make a double spinbox for arrow head width
     head_length_box = QW_QDoubleSpinBox()
     head_length_box.setRange(0, 9999999)
     head_length_box.setDecimals(4)
     head_length_box.setToolTip("Scaling factor for the width of the "
                                "plotted arrow head")
     return(head_length_box)
示例#5
0
    def create_type_float(self):
        """
        Creates the field box for values of type 'float' and returns it.

        """

        # Create a spinbox for floats
        float_box = QW_QDoubleSpinBox()
        float_box.setRange(-9999999, 9999999)
        float_box.setDecimals(6)
        float_box.setToolTip("Float value for this entry type")
        return (float_box)