Compare commits
3 Commits
c9186dfc12
...
develop
| Author | SHA1 | Date | |
|---|---|---|---|
| 0811ae9a37 | |||
| 93f3622c99 | |||
| e8a38229af |
+11
-6
@@ -193,7 +193,7 @@ class GatewayConfigTool(QMainWindow):
|
||||
info_grid.addWidget(self.label_cur_lora_fc, row, 1)
|
||||
|
||||
# Eth参数(紧凑两列)
|
||||
eth_info_group = QGroupBox("ETH / Cat1网络参数")
|
||||
eth_info_group = QGroupBox("ETH网络参数")
|
||||
eth_info_grid = QGridLayout(eth_info_group)
|
||||
eth_info_grid.setSpacing(4)
|
||||
|
||||
@@ -256,7 +256,7 @@ class GatewayConfigTool(QMainWindow):
|
||||
config_layout.addWidget(misc_group)
|
||||
|
||||
# Eth参数(紧凑两列)
|
||||
eth_group = QGroupBox("ETH参数(需先切换到eth模式)")
|
||||
eth_group = QGroupBox("ETH参数配置(需先切换到eth模式)")
|
||||
eth_grid = QGridLayout(eth_group)
|
||||
eth_grid.setSpacing(4)
|
||||
|
||||
@@ -321,7 +321,7 @@ class GatewayConfigTool(QMainWindow):
|
||||
|
||||
lora_layout.addWidget(QLabel("信道:"))
|
||||
self.combo_lora_fc = QComboBox()
|
||||
self.combo_lora_fc.setSizeAdjustPolicy(QComboBox.AdjustToMinimumContentsLengthWithIcon)
|
||||
self.combo_lora_fc.setFixedWidth(200)
|
||||
lora_freqs = []
|
||||
fc_hz = 410100000
|
||||
ch_idx = 1
|
||||
@@ -332,9 +332,12 @@ class GatewayConfigTool(QMainWindow):
|
||||
ch_idx += 1
|
||||
for freq, desc in lora_freqs:
|
||||
self.combo_lora_fc.addItem(desc, freq)
|
||||
self.combo_lora_fc.view().setVerticalScrollBarPolicy(Qt.ScrollBarAlwaysOn)
|
||||
self.combo_lora_fc.view().setMinimumHeight(200)
|
||||
lora_layout.addWidget(self.combo_lora_fc, 1)
|
||||
self.combo_lora_fc.setMaxVisibleItems(20)
|
||||
self.combo_lora_fc.setStyleSheet(
|
||||
"QComboBox { combobox-popup: 0; }"
|
||||
"QComboBox QAbstractItemView { max-height: 500px; }"
|
||||
)
|
||||
lora_layout.addWidget(self.combo_lora_fc)
|
||||
|
||||
self.btn_lora_fc = QPushButton("发送")
|
||||
self.btn_lora_fc.setFixedWidth(60)
|
||||
@@ -342,6 +345,8 @@ class GatewayConfigTool(QMainWindow):
|
||||
self.btn_lora_fc.clicked.connect(self.on_lora_send)
|
||||
lora_layout.addWidget(self.btn_lora_fc)
|
||||
|
||||
lora_layout.addStretch()
|
||||
|
||||
config_layout.addWidget(lora_group)
|
||||
|
||||
# -- 下方:日志区 + 自定义指令 --
|
||||
|
||||
Reference in New Issue
Block a user