Network/IRC/IrcIdentitiesEditDialog.py

changeset 2960
9453efa25fd5
parent 2302
f29e9405c851
child 2992
dbdf27746da5
equal deleted inserted replaced
2959:86ad8854361b 2960:9453efa25fd5
92 92
93 @pyqtSlot(str) 93 @pyqtSlot(str)
94 def on_identitiesCombo_currentIndexChanged(self, identity): 94 def on_identitiesCombo_currentIndexChanged(self, identity):
95 """ 95 """
96 Private slot to handle the selection of an identity. 96 Private slot to handle the selection of an identity.
97
98 @param identity selected identity (string)
97 """ 99 """
98 if identity == IrcIdentity.DefaultIdentityDisplay: 100 if identity == IrcIdentity.DefaultIdentityDisplay:
99 identity = IrcIdentity.DefaultIdentityName 101 identity = IrcIdentity.DefaultIdentityName
100 self.__updateIdentitiesButtons() 102 self.__updateIdentitiesButtons()
101 103
341 self.nicknameUpButton.setEnabled(True) 343 self.nicknameUpButton.setEnabled(True)
342 self.nicknameDownButton.setEnabled(True) 344 self.nicknameDownButton.setEnabled(True)
343 345
344 def __updateNicknameButtons(self): 346 def __updateNicknameButtons(self):
345 """ 347 """
346 Private slot to update the nick name buttons except the up and down buttons. 348 Private slot to update the nick name buttons except the up and
349 down buttons.
347 """ 350 """
348 self.nicknameDeleteButton.setEnabled( 351 self.nicknameDeleteButton.setEnabled(
349 len(self.nicknamesList.selectedItems()) != 0) 352 len(self.nicknamesList.selectedItems()) != 0)
350 353
351 self.nicknameAddButton.setEnabled(self.nicknameEdit.text() != "") 354 self.nicknameAddButton.setEnabled(self.nicknameEdit.text() != "")
352 355
353 @pyqtSlot(str) 356 @pyqtSlot(str)
354 def on_nicknameEdit_textEdited(self, nick): 357 def on_nicknameEdit_textEdited(self, nick):
355 """ 358 """
356 Private slot handling a change of the nick name. 359 Private slot handling a change of the nick name.
360
361 @param nick new nick name (string)
357 """ 362 """
358 sel = self.nicknamesList.selectedItems() 363 sel = self.nicknamesList.selectedItems()
359 if sel: 364 if sel:
360 sel[0].setText(nick) 365 sel[0].setText(nick)
361 366

eric ide

mercurial