Coverage for grm\plugin\utils.py : 0%
Hot-keys on this page
r m x p toggle line displays
j k next/prev highlighted chunk
0 (zero) top of page
1 (one) first highlighted chunk
1#from PyQt4.QtGui import QMessageBox
2from PyQt5.QtWidgets import *
4def show_error_message(message, parent):
5 """
6 """
7 msg = QMessageBox(parent)
8 msg.setIcon(QMessageBox.Critical)
9 msg.setInformativeText(message)
10 msg.setWindowTitle("Error")
11 msg.setStandardButtons(QMessageBox.Ok)
12 retval = msg.exec_()
14def c_bool(value):
15 if value == 'true':
16 return True
17 return False
19def bool_c(value):
20 if value:
21 return 'true'
22 return 'false'