--- a/Network/IRC/IrcMessageEdit.py Sun Mar 24 13:52:12 2013 +0100 +++ b/Network/IRC/IrcMessageEdit.py Mon Mar 25 03:11:06 2013 +0100 @@ -7,6 +7,8 @@ Module implementing a specialized line edit for entering IRC messages. """ +from __future__ import unicode_literals # __IGNORE_WARNING__ + from PyQt4.QtCore import Qt from E5Gui.E5LineEdit import E5LineEdit, E5ClearableLineEdit @@ -27,7 +29,7 @@ @keyparam side side the clear button should be shown at (E5LineEdit.RightSide, E5LineEdit.LeftSide) """ - super().__init__(parent, inactiveText, side) + super(IrcMessageEdit, self).__init__(parent, inactiveText, side) self.__historyList = [""] # initialize with one empty line self.__historyLine = 0 @@ -40,7 +42,7 @@ @param text text to be set (string) """ - super().setText(text) + super(IrcMessageEdit, self).setText(text) self.setCursorPosition(len(text)) def keyPressEvent(self, evt): @@ -63,7 +65,7 @@ # ^U: clear the text self.setText("") - super().keyPressEvent(evt) + super(IrcMessageEdit, self).keyPressEvent(evt) def wheelEvent(self, evt): """ @@ -76,7 +78,7 @@ elif evt.delta() < 0: self.__getHistory(False) - super().wheelEvent(evt) + super(IrcMessageEdit, self).wheelEvent(evt) def __addHistory(self, txt): """