PluginProjectWeb.py

branch
eric7
changeset 54
1b47d2b39f7c
parent 52
815847f3d404
child 56
d91d613bba96
diff -r 5921f891c949 -r 1b47d2b39f7c PluginProjectWeb.py
--- a/PluginProjectWeb.py	Sat Dec 23 17:17:08 2023 +0100
+++ b/PluginProjectWeb.py	Sat Oct 26 17:37:43 2024 +0200
@@ -25,21 +25,24 @@
     BeautifulSoupAvailable = False
 
 # Start-Of-Header
-name = "Generic Web Project Plug-in"
-author = "Detlev Offenbach <detlev@die-offenbachs.de>"
-autoactivate = True
-deactivateable = True
-version = "10.2.1"
-className = "ProjectWebPlugin"
-packageName = "ProjectWeb"
-shortDescription = "Support for Web projects and web related tools."
-longDescription = (
-    """This plug-in provides support for ordinary web projects and some web"""
-    """ related tools.\n\nIt uses BeautifulSoup4 for some of its"""
-    """ functionality."""
-)
-needsRestart = False
-pyqtApi = 2
+__header__ = {
+    "name": "Generic Web Project Plug-in",
+    "author": "Detlev Offenbach <detlev@die-offenbachs.de>",
+    "autoactivate": True,
+    "deactivateable": True,
+    "version": "10.2.2",
+    "className": "ProjectWebPlugin",
+    "packageName": "ProjectWeb",
+    "shortDescription": "Support for Web projects and web related tools.",
+    "longDescription": (
+        """This plug-in provides support for ordinary web projects and some web"""
+        """ related tools.\n\nIt uses BeautifulSoup4 for some of its"""
+        """ functionality."""
+    ),
+    "needsRestart": False,
+    "hasCompiledForms": True,
+    "pyqtApi": 2,
+}
 # End-Of-Header
 
 error = ""
@@ -305,7 +308,7 @@
         editor = vm.activeWindow()
         html = editor.selectedText()
 
-        converter = Html5ToCss3Converter(html)
+        converter = Html5ToCss3Converter(html, parent=self.__ui)
         css3 = converter.getCss3()
 
         if css3:
@@ -324,7 +327,7 @@
         editor = vm.activeWindow()
         html = editor.selectedText()
 
-        converter = Html5ToJsConverter(html)
+        converter = Html5ToJsConverter(html, parent=self.__ui)
         js = converter.getJavaScript()
 
         if js:

eric ide

mercurial