def METHOD_NAME(parent,
                  sld_name,
                  text_name,
                  text,
                  default_value=50,
                  max_value=100,
                  min_value=0,
                  text_rate=0.01,
                  edit=False):
    Region = QtWidgets.QHBoxLayout()
    lab = create_text(parent, None, text)
    Region.addWidget(lab)
    if edit is False:
        labShow = create_text(parent, text_name, str(default_value * text_rate))
    else:
        labShow = create_edit(parent, text_name, str(default_value * text_rate))
    labShow.setMaximumWidth(100)
    Region.addWidget(labShow)
    Region.addStretch()
    sld = QtWidgets.QSlider(parent)
    sld.setMaximum(max_value)  # 好像只能整数的，这里是扩大了10倍，1 . 10
    sld.setMinimum(min_value)
    sld.setProperty("value", default_value)
    sld.setOrientation(QtCore.Qt.Horizontal)
    sld.setObjectName(sld_name)
    sld.setStyleSheet("""
        QSlider::sub-page:horizontal {
            background: #9999F1
        }
        QSlider::handle:horizontal
        {
            background: #3334E3;
            width: 12px;
            border-radius: 4px;
        }
        """)
    sld.textLab = labShow
    return sld, labShow, Region