|
发表于 2020-4-12 21:14:33
|
显示全部楼层
看了下Pylink的代码,不太像楼主要的功能,但跟Dialog相关的就这个函数。
- def disable_dialog_boxes(self):
- """Disables showing dialog boxes on certain methods.
- Note:
- Dialog boxes only appear on Windows platforms.
- Warning:
- This has the effect of also silencing dialog boxes that appear when
- updating firmware / to confirm updating firmware.
- Dialog boxes will be shown for a brief period of time (approximately
- five seconds), before being automatically hidden, and the default
- option chosen.
- Args:
- self (JLink): the ``JLink`` instance
- Returns:
- ``None``
- """
- self.exec_command('SilentUpdateFW')
- self.exec_command('SuppressInfoUpdateFW')
- self.exec_command('SetBatchMode = 1')
复制代码 |
|