63 if coStr.startswith('#'): |
63 if coStr.startswith('#'): |
64 coStr = "QColor('{0}')".format(coStr) |
64 coStr = "QColor('{0}')".format(coStr) |
65 else: |
65 else: |
66 coStr = "QColor({0})".format(coStr) |
66 coStr = "QColor({0})".format(coStr) |
67 try: |
67 try: |
68 exec('from PyQt5.QtCore import Qt;' |
68 exec('from PyQt5.QtCore import Qt;' # secok |
69 ' QColorDialog.getColor({0}, None, "{1}")'.format( |
69 ' QColorDialog.getColor({0}, None, "{1}")'.format( |
70 coStr, self.eTitle.text())) |
70 coStr, self.eTitle.text())) |
71 except Exception: |
71 except Exception: |
72 E5MessageBox.critical( |
72 E5MessageBox.critical( |
73 self, |
73 self, |