diff -r 0ea528e80202 -r e5d1addeb90c E5Gui/E5ToolBarDialog.py --- a/E5Gui/E5ToolBarDialog.py Mon Jul 26 19:59:27 2010 +0200 +++ b/E5Gui/E5ToolBarDialog.py Tue Jul 27 08:25:53 2010 +0200 @@ -54,7 +54,7 @@ self.__currentToolBarItem = None self.__removedToolBarIDs = [] # remember custom toolbars to be deleted - self.__widgetActionToToolBarItemID = {} # maps widget action IDs to toolbar item IDs + self.__widgetActionToToolBarItemID = {} # maps widget action IDs to toolbar item IDs self.__toolBarItemToWidgetActionID = {} # maps toolbar item IDs to widget action IDs self.upButton.setIcon(UI.PixmapCache.getIcon("1uparrow.png")) @@ -406,7 +406,7 @@ else: action = self.__manager.actionById(actionID) if action is None: - raise RuntimeError("No such action, id: 0x%x" % actionID) + raise RuntimeError("No such action, id: 0x{0:x}".format(actionID)) actions.append(action) self.__manager.setToolBar(tb, actions) tbItem.isChanged = False @@ -458,4 +458,4 @@ tbID = self.__currentToolBarItem.toolBarId actions = self.__manager.defaultToolBarActions(tbID) self.__restoreCurrentToolbar(actions) - self.__currentToolBarItem.isChanged = True \ No newline at end of file + self.__currentToolBarItem.isChanged = True