def __make_setting(self, signal_frame, pause_threshold=None, message_divisor_length=None):
def accept_dialog():
for widget in QApplication.instance().topLevelWidgets():
if isinstance(widget, AdvancedModulationOptionsController):
if pause_threshold is not None:
widget.ui.spinBoxPauseThreshold.setValue(pause_threshold)
if message_divisor_length is not None:
widget.ui.spinBoxMessageLengthDivisor.setValue(message_divisor_length)
widget.ui.buttonBox.accepted.emit()
return
timer = QTimer()
timer.setSingleShot(True)
timer.timeout.connect(accept_dialog)
timer.setInterval(10)
timer.start()
signal_frame.ui.btnAdvancedModulationSettings.click()
评论列表
文章目录