PyBitmessage-2021-04-27/src/graphicaltesting/test_appstart.py
2020-02-27 20:16:43 +05:30

11 lines
304 B
Python

"""Trigger dialog"""
from PyQt4 import QtCore, QtGui
from PyQt4.QtTest import QTest
def connectme(dialog):
"""Automate the connect dialog, when run for first time"""
dialog.show()
QTest.qWait(1200)
QtCore.QTimer.singleShot(0, dialog.buttonBox.button(QtGui.QDialogButtonBox.Ok).clicked)