Mon, 23 Jan 2023 16:40:38 +0100
Corrected an incompatibility with upcoming PyQt6 release.
src/eric7/EricWidgets/EricSpellCheckedTextEdit.py | file | annotate | diff | comparison | revisions |
--- a/src/eric7/EricWidgets/EricSpellCheckedTextEdit.py Sun Jan 22 15:05:19 2023 +0100 +++ b/src/eric7/EricWidgets/EricSpellCheckedTextEdit.py Mon Jan 23 16:40:38 2023 +0100 @@ -464,14 +464,17 @@ QTextCharFormat.UnderlineStyle.SpellCheckUnderline ) - def __init__(self, *args): + def __init__(self, *args, **kwargs): """ Constructor @param *args list of arguments for the QSyntaxHighlighter @type list + @keyparam **kwargs dictionary of keyword arguments for the + QSyntaxHighlighter + @type dict """ - QSyntaxHighlighter.__init__(self, *args) + QSyntaxHighlighter.__init__(self, *args, **kwargs) self.__spellDict = None self.__tokenizer = None @@ -658,14 +661,16 @@ Class implementing a QPlainTextEdit with built-in spell checker. """ - def __init__(self, *args): + def __init__(self, *args, **kwargs): """ Constructor @param *args list of arguments for the QPlainTextEdit constructor. @type list + @keyparam **kwargs dictionary of keyword arguments for the QSyntaxHighlighter + @type dict """ - QPlainTextEdit.__init__(self, *args) + QPlainTextEdit.__init__(self, *args, **kwargs) SpellCheckMixin.__init__(self) self.setContextMenuPolicy(Qt.ContextMenuPolicy.CustomContextMenu) @@ -677,14 +682,16 @@ Class implementing a QTextEdit with built-in spell checker. """ - def __init__(self, *args): + def __init__(self, *args, **kwargs): """ Constructor @param *args list of arguments for the QPlainTextEdit constructor. @type list + @keyparam **kwargs dictionary of keyword arguments for the QSyntaxHighlighter + @type dict """ - QTextEdit.__init__(self, *args) + QTextEdit.__init__(self, *args, **kwargs) SpellCheckMixin.__init__(self) self.setFormat("html")