eric6/Preferences/ToolConfigurationDialog.py

changeset 7263
c1af2e327675
parent 7229
53054eb5b15a
child 7360
9190402e4505
equal deleted inserted replaced
7262:c4b5f3393d63 7263:c1af2e327675
325 def __toolEntryChanged(self): 325 def __toolEntryChanged(self):
326 """ 326 """
327 Private slot to perform actions when a tool entry was changed. 327 Private slot to perform actions when a tool entry was changed.
328 """ 328 """
329 row = self.toolsList.currentRow() 329 row = self.toolsList.currentRow()
330 if row >= 0 and \ 330 if (
331 row < len(self.toollist) and \ 331 row >= 0 and
332 self.toollist[row]['menutext'] != '--': 332 row < len(self.toollist) and
333 self.toollist[row]['menutext'] != '--'
334 ):
333 self.changeButton.setEnabled(True) 335 self.changeButton.setEnabled(True)
334 336
335 def on_menuEdit_textChanged(self, text): 337 def on_menuEdit_textChanged(self, text):
336 """ 338 """
337 Private slot called, when the menu text was changed. 339 Private slot called, when the menu text was changed.

eric ide

mercurial