Windows 10; Python 3.10; PyQt5 5.15.6
В коде имею следующую функцию:
При вызове функции появляется msgbox, который "Не отвечает", в результате чего приходится перезапускать программу. В чём может таиться проблема?
Пример вызова:
ahk 0.13.0
async-generator 1.10
attrs 21.4.0
beautifulsoup4 4.10.0
certifi 2021.10.8
cffi 1.15.0
charset-normalizer 2.0.10
cryptography 36.0.1
h11 0.13.0
idna 3.3
Jinja2 3.0.3
keybind 0.3.0
keyboard 0.13.5
lxml 4.7.1
MarkupSafe 2.0.1
MouseInfo 0.1.3
outcome 1.1.0
pip 21.2.3
PyAutoGUI 0.9.53
pycparser 2.21
PyGetWindow 0.0.9
PyMsgBox 1.0.9
pyOpenSSL 21.0.0
pyperclip 1.8.2
PyQt5 5.15.6
PyQt5-Qt5 5.15.2
PyQt5-sip 12.9.0
PyRect 0.1.4
PyScreeze 0.1.28
python-xlib 0.31
pytweening 1.0.4
pywin32 303
requests 2.27.1
selenium 4.1.0
setuptools 57.4.0
six 1.16.0
sniffio 1.2.0
sortedcontainers 2.4.0
soupsieve 2.3.1
trio 0.19.0
trio-websocket 0.9.2
urllib3 1.26.8
wsproto 1.0.0
async-generator 1.10
attrs 21.4.0
beautifulsoup4 4.10.0
certifi 2021.10.8
cffi 1.15.0
charset-normalizer 2.0.10
cryptography 36.0.1
h11 0.13.0
idna 3.3
Jinja2 3.0.3
keybind 0.3.0
keyboard 0.13.5
lxml 4.7.1
MarkupSafe 2.0.1
MouseInfo 0.1.3
outcome 1.1.0
pip 21.2.3
PyAutoGUI 0.9.53
pycparser 2.21
PyGetWindow 0.0.9
PyMsgBox 1.0.9
pyOpenSSL 21.0.0
pyperclip 1.8.2
PyQt5 5.15.6
PyQt5-Qt5 5.15.2
PyQt5-sip 12.9.0
PyRect 0.1.4
PyScreeze 0.1.28
python-xlib 0.31
pytweening 1.0.4
pywin32 303
requests 2.27.1
selenium 4.1.0
setuptools 57.4.0
six 1.16.0
sniffio 1.2.0
sortedcontainers 2.4.0
soupsieve 2.3.1
trio 0.19.0
trio-websocket 0.9.2
urllib3 1.26.8
wsproto 1.0.0
Python:
def CreateMessage(title, icon, text, informative_text):
MESSAGE=QMessageBox()
MESSAGE.setWindowTitle(title)
MESSAGE.setIcon(icon)
MESSAGE.setText(text)
MESSAGE.setInformativeText(informative_text)
MESSAGE.setStandardButtons(QMessageBox.Ok)
MESSAGE.exec_()
Пример вызова:
Python:
CreateMessage('Ошибка', QMessageBox.Critical, f'Доменное имя {domain} не поддерживается', None)