ProjectDjangoTagsMenu/IeCommentDialog.py

branch
eric7
changeset 72
529f1c17c93e
parent 70
ce1c2effa0e0
child 74
a25b858e18a7
--- a/ProjectDjangoTagsMenu/IeCommentDialog.py	Sat Dec 23 16:54:25 2023 +0100
+++ b/ProjectDjangoTagsMenu/IeCommentDialog.py	Mon Oct 28 16:51:09 2024 +0100
@@ -52,16 +52,18 @@
         )
 
     @staticmethod
-    def getTag(selectedText):
+    def getTag(selectedText, parent=None):
         """
         Public static method to get the formatted tag.
 
         @param selectedText selected text to embed
         @type str
+        @param parent reference to the parent widget (defaults to None)
+        @type QWidget (optional)
         @return formatted tag and  a flag indicating the acceptance state
         @rtype tuple of (str, bool)
         """
-        dlg = IeCommentDialog()
+        dlg = IeCommentDialog(parent=parent)
         if dlg.exec() == QDialog.DialogCode.Accepted:
             condition, version = dlg.getData()
             tag = "[if{0} IE {1}]> {2} <![endif]".format(

eric ide

mercurial