Plugins/ViewManagerPlugins/MdiArea/MdiArea.py

changeset 425
ca5e65413fc5
parent 110
c9a969db1469
child 453
a81097a85889
equal deleted inserted replaced
424:d0915392cbd7 425:ca5e65413fc5
186 txt = Utilities.compactPath(fn, self.ui.maxMenuFilePathLen) 186 txt = Utilities.compactPath(fn, self.ui.maxMenuFilePathLen)
187 else: 187 else:
188 txt = sv.windowTitle() 188 txt = sv.windowTitle()
189 accel = "" 189 accel = ""
190 if idx < 10: 190 if idx < 10:
191 accel = "&%d. " % idx 191 accel = "&{0:d}. ".format(idx)
192 elif idx < 36: 192 elif idx < 36:
193 accel = "&%c. " % chr(idx - 9 + ord("@")) 193 accel = "&{0}. ".format(chr(idx - 9 + ord("@")))
194 act = menu.addAction("%s%s" % (accel, txt)) 194 act = menu.addAction("{0}{1}".format(accel, txt))
195 self.connect(act, SIGNAL("triggered()"), 195 self.connect(act, SIGNAL("triggered()"),
196 self.__windowMapper, SLOT("map()")) 196 self.__windowMapper, SLOT("map()"))
197 self.__windowMapper.setMapping(act, subWindow) 197 self.__windowMapper.setMapping(act, subWindow)
198 idx += 1 198 idx += 1
199 199

eric ide

mercurial