ProjectDjangoTagsMenu/IeCommentDialog.py

changeset 49
ef6c805ae218
parent 47
825bf5861f89
child 51
29c461f7bea0
equal deleted inserted replaced
48:ba771c089e44 49:ef6c805ae218
50 @param selectedText selected text to embed (string) 50 @param selectedText selected text to embed (string)
51 @return formatted tag (string) and a flag indicating the acceptance 51 @return formatted tag (string) and a flag indicating the acceptance
52 state (boolean) 52 state (boolean)
53 """ 53 """
54 dlg = IeCommentDialog() 54 dlg = IeCommentDialog()
55 if dlg.exec_() == QDialog.Accepted: 55 if dlg.exec() == QDialog.Accepted:
56 condition, version = dlg.getData() 56 condition, version = dlg.getData()
57 tag = '[if{0} IE {1}]> {2} <![endif]'.format( 57 tag = '[if{0} IE {1}]> {2} <![endif]'.format(
58 condition, version, selectedText) 58 condition, version, selectedText)
59 return tag, True 59 return tag, True
60 else: 60 else:

eric ide

mercurial