diff -r fb0ef164f536 -r 698ae46f40a4 eric6/Network/IRC/IrcMessageEdit.py --- a/eric6/Network/IRC/IrcMessageEdit.py Fri Apr 02 11:59:41 2021 +0200 +++ b/eric6/Network/IRC/IrcMessageEdit.py Sat May 01 14:27:20 2021 +0200 @@ -9,7 +9,7 @@ from PyQt5.QtCore import Qt -from E5Gui.E5LineEdit import E5LineEdit, E5ClearableLineEdit +from E5Gui.E5LineEdit import E5LineEditSide, E5ClearableLineEdit class IrcMessageEdit(E5ClearableLineEdit): @@ -19,16 +19,18 @@ MaxHistory = 100 def __init__(self, parent=None, inactiveText="", - side=E5LineEdit.RightSide): + side=E5LineEditSide.RIGHT): """ Constructor - @param parent reference to the parent widget (QWidget) - @param inactiveText text to be shown on inactivity (string) + @param parent reference to the parent widget + @type QWidget + @param inactiveText text to be shown on inactivity + @type str @param side side the clear button should be shown at - (E5LineEdit.RightSide, E5LineEdit.LeftSide) + @type E5LineEditSide """ - super(IrcMessageEdit, self).__init__(parent, inactiveText, side) + super().__init__(parent, inactiveText, side) self.__historyList = [""] # initialize with one empty line self.__historyLine = 0 @@ -42,7 +44,7 @@ @param text text to be set (string) """ - super(IrcMessageEdit, self).setText(text) + super().setText(text) self.setCursorPosition(len(text)) def keyPressEvent(self, evt): @@ -65,7 +67,7 @@ # ^U: clear the text self.setText("") - super(IrcMessageEdit, self).keyPressEvent(evt) + super().keyPressEvent(evt) def wheelEvent(self, evt): """ @@ -79,7 +81,7 @@ elif delta < 0: self.__getHistory(False) - super(IrcMessageEdit, self).wheelEvent(evt) + super().wheelEvent(evt) def __addHistory(self, txt): """