remove the label attribute from the checkboxes

This commit is contained in:
Jakob Ketterl
2021-02-22 00:57:02 +01:00
parent 770fd749cd
commit 9beb3b9168
9 changed files with 16 additions and 27 deletions

View File

@ -392,7 +392,7 @@ class SdrDeviceDescription(object):
def getInputs(self) -> List[Input]:
return [
TextInput("name", "Device name"),
CheckboxInput("enabled", "", "Enable this device", converter=OptionalConverter(defaultFormValue=True)),
CheckboxInput("enabled", "Enable this device", converter=OptionalConverter(defaultFormValue=True)),
NumberInput(
"ppm",
"Frequency correction",
@ -401,8 +401,7 @@ class SdrDeviceDescription(object):
),
CheckboxInput(
"always-on",
"",
checkboxText="Keep device running at all times",
"Keep device running at all times",
infotext="Prevents shutdown of the device when idle. Useful for devices with unreliable startup.",
converter=OptionalConverter(defaultFormValue=False),
),

View File

@ -26,8 +26,7 @@ class AirspyDeviceDescription(SoapyConnectorDeviceDescription):
BiasTeeInput(),
CheckboxInput(
"bitpack",
"",
checkboxText="Enable bit-packing",
"Enable bit-packing",
infotext="Packs two 12-bit samples into 3 bytes."
+ " Lowers USB bandwidth consumption, increases CPU load",
converter=OptionalConverter(defaultFormValue=False),

View File

@ -87,8 +87,7 @@ class ConnectorDeviceDescription(SdrDeviceDescription):
),
CheckboxInput(
"iqswap",
"",
checkboxText="Swap I and Q channels",
"Swap I and Q channels",
infotext="Swapping inverts the spectrum, so this is useful in combination with an inverting mixer",
converter=OptionalConverter(defaultFormValue=False),
),

View File

@ -42,14 +42,12 @@ class SdrplayDeviceDescription(SoapyConnectorDeviceDescription):
BiasTeeInput(),
CheckboxInput(
"rf_notch",
"",
checkboxText="Enable RF notch filter",
"Enable RF notch filter",
converter=OptionalConverter(defaultFormValue=True),
),
CheckboxInput(
"dab_notch",
"",
checkboxText="Enable DAB notch filter",
"Enable DAB notch filter",
converter=OptionalConverter(defaultFormValue=True),
),
DropdownInput(