Preferences/ShortcutsDialog.py

changeset 564
b3d966393ba9
parent 553
5af61623ae3c
child 791
9ec2ac20e54e
equal deleted inserted replaced
563:e35d2cda9a74 564:b3d966393ba9
293 itmseq = itm.text(col) 293 itmseq = itm.text(col)
294 # step 1: check if shortcut is already allocated 294 # step 1: check if shortcut is already allocated
295 if keystr == itmseq: 295 if keystr == itmseq:
296 res = E5MessageBox.yesNo(self, 296 res = E5MessageBox.yesNo(self,
297 self.trUtf8("Edit shortcuts"), 297 self.trUtf8("Edit shortcuts"),
298 self.trUtf8(\ 298 self.trUtf8(
299 """<p><b>{0}</b> has already been allocated""" 299 """<p><b>{0}</b> has already been allocated"""
300 """ to the <b>{1}</b> action. """ 300 """ to the <b>{1}</b> action. """
301 """Remove this binding?</p>""") 301 """Remove this binding?</p>""")
302 .format(keystr, itm.text(0)), 302 .format(keystr, itm.text(0)),
303 icon = E5MessageBox.Warning) 303 icon = E5MessageBox.Warning)
312 312
313 # step 2: check if shortcut hides an already allocated 313 # step 2: check if shortcut hides an already allocated
314 if itmseq.startswith("{0}+".format(keystr)): 314 if itmseq.startswith("{0}+".format(keystr)):
315 res = E5MessageBox.yesNo(self, 315 res = E5MessageBox.yesNo(self,
316 self.trUtf8("Edit shortcuts"), 316 self.trUtf8("Edit shortcuts"),
317 self.trUtf8(\ 317 self.trUtf8(
318 """<p><b>{0}</b> hides the <b>{1}</b> action. """ 318 """<p><b>{0}</b> hides the <b>{1}</b> action. """
319 """Remove this binding?</p>""") 319 """Remove this binding?</p>""")
320 .format(keystr, itm.text(0)), 320 .format(keystr, itm.text(0)),
321 icon = E5MessageBox.Warning) 321 icon = E5MessageBox.Warning)
322 if res: 322 if res:
327 327
328 # step 3: check if shortcut is hidden by an already allocated 328 # step 3: check if shortcut is hidden by an already allocated
329 if keystr.startswith("{0}+".format(itmseq)): 329 if keystr.startswith("{0}+".format(itmseq)):
330 res = E5MessageBox.yesNo(self, 330 res = E5MessageBox.yesNo(self,
331 self.trUtf8("Edit shortcuts"), 331 self.trUtf8("Edit shortcuts"),
332 self.trUtf8(\ 332 self.trUtf8(
333 """<p><b>{0}</b> is hidden by the """ 333 """<p><b>{0}</b> is hidden by the """
334 """<b>{1}</b> action. """ 334 """<b>{1}</b> action. """
335 """Remove this binding?</p>""") 335 """Remove this binding?</p>""")
336 .format(keystr, itm.text(0)), 336 .format(keystr, itm.text(0)),
337 icon = E5MessageBox.Warning) 337 icon = E5MessageBox.Warning)

eric ide

mercurial