eric6/Plugins/WizardPlugins/ColorDialogWizard/ColorDialogWizardDialog.py

changeset 7628
f904d0eef264
parent 7537
4e2d6b12f67c
child 7780
41420f82c0ac
equal deleted inserted replaced
7626:7f643d41464e 7628:f904d0eef264
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,

eric ide

mercurial