Plugins/WizardPlugins/ColorDialogWizard/ColorDialogWizardDialog.py

changeset 4563
881340f4bd0c
parent 4021
195a471c327b
child 4631
5c1a96925da4
equal deleted inserted replaced
4561:5bc6ed226471 4563:881340f4bd0c
67 coStr = "QColor({0})".format(coStr) 67 coStr = "QColor({0})".format(coStr)
68 try: 68 try:
69 exec('from PyQt5.QtCore import Qt;' 69 exec('from PyQt5.QtCore import Qt;'
70 ' QColorDialog.getColor({0}, None, "{1}")'.format( 70 ' QColorDialog.getColor({0}, None, "{1}")'.format(
71 coStr, self.eTitle.text())) 71 coStr, self.eTitle.text()))
72 except: 72 except Exception:
73 E5MessageBox.critical( 73 E5MessageBox.critical(
74 self, 74 self,
75 self.tr("QColorDialog Wizard Error"), 75 self.tr("QColorDialog Wizard Error"),
76 self.tr( 76 self.tr(
77 """<p>The colour <b>{0}</b> is not valid.</p>""") 77 """<p>The colour <b>{0}</b> is not valid.</p>""")

eric ide

mercurial