eric6/Network/IRC/IrcChannelWidget.py

changeset 8143
2c730d5fd177
parent 7923
91e843545d9a
child 8218
7c09585bd960
equal deleted inserted replaced
8141:27f636beebad 8143:2c730d5fd177
1318 txt = txt[:pos] + "</body></html>" 1318 txt = txt[:pos] + "</body></html>"
1319 else: 1319 else:
1320 txt = txt.replace(self.__markerLine, "") 1320 txt = txt.replace(self.__markerLine, "")
1321 self.messages.setHtml(txt) 1321 self.messages.setHtml(txt)
1322 self.__markerLine = "" 1322 self.__markerLine = ""
1323 self.messages.moveCursor(QTextCursor.End) 1323 self.messages.moveCursor(QTextCursor.MoveOperation.End)
1324 1324
1325 def __clearMessages(self): 1325 def __clearMessages(self):
1326 """ 1326 """
1327 Private slot to clear the contents of the messages display. 1327 Private slot to clear the contents of the messages display.
1328 """ 1328 """
2034 """ 2034 """
2035 topic, ok = QInputDialog.getText( 2035 topic, ok = QInputDialog.getText(
2036 self, 2036 self,
2037 self.tr("Edit Channel Topic"), 2037 self.tr("Edit Channel Topic"),
2038 self.tr("Enter the topic for this channel:"), 2038 self.tr("Enter the topic for this channel:"),
2039 QLineEdit.Normal, 2039 QLineEdit.EchoMode.Normal,
2040 self.topicLabel.text()) 2040 self.topicLabel.text())
2041 if ok and topic != "": 2041 if ok and topic != "":
2042 self.sendData.emit("TOPIC {0} :{1}".format( 2042 self.sendData.emit("TOPIC {0} :{1}".format(
2043 self.__name, topic)) 2043 self.__name, topic))
2044 2044

eric ide

mercurial