def __get_recv_dialog(self): receive_dialog = ReceiveDialogController(self.form.project_manager, testing_mode=True, parent=self.form) if self.SHOW: receive_dialog.show() return receive_dialog
def on_show_record_dialog_action_triggered(self): pm = self.project_manager r = ReceiveDialogController(pm.frequency, pm.sample_rate, pm.bandwidth, pm.gain, pm.device, parent=self) if r.has_empty_device_list: Errors.no_device() r.close() return r.recording_parameters.connect(pm.set_recording_parameters) r.files_recorded.connect(self.on_signals_recorded) r.show()
def on_show_record_dialog_action_triggered(self): pm = self.project_manager try: r = ReceiveDialogController(pm, parent=self) except OSError as e: logger.error(repr(e)) return if r.has_empty_device_list: Errors.no_device() r.close() return r.recording_parameters.connect(pm.set_recording_parameters) r.files_recorded.connect(self.on_signals_recorded) r.show()