E5Gui/E5ToolBarDialog.py

branch
Py2 comp.
changeset 2525
8b507a9a2d40
parent 2302
f29e9405c851
child 2791
a9577f248f04
equal deleted inserted replaced
2523:139f182b72f6 2525:8b507a9a2d40
4 # 4 #
5 5
6 """ 6 """
7 Module implementing a toolbar configuration dialog. 7 Module implementing a toolbar configuration dialog.
8 """ 8 """
9
10 from __future__ import unicode_literals # __IGNORE_WARNING__
9 11
10 from PyQt4.QtCore import pyqtSlot, Qt 12 from PyQt4.QtCore import pyqtSlot, Qt
11 from PyQt4.QtGui import QDialog, QDialogButtonBox, QTreeWidgetItem, QColor, \ 13 from PyQt4.QtGui import QDialog, QDialogButtonBox, QTreeWidgetItem, QColor, \
12 QInputDialog, QLineEdit, QListWidgetItem, QAbstractButton 14 QInputDialog, QLineEdit, QListWidgetItem, QAbstractButton
13 15
49 Constructor 51 Constructor
50 52
51 @param toolBarManager reference to a toolbar manager object (E5ToolBarManager) 53 @param toolBarManager reference to a toolbar manager object (E5ToolBarManager)
52 @param parent reference to the parent widget (QWidget) 54 @param parent reference to the parent widget (QWidget)
53 """ 55 """
54 super().__init__(parent) 56 super(E5ToolBarDialog, self).__init__(parent)
55 self.setupUi(self) 57 self.setupUi(self)
56 58
57 self.__manager = toolBarManager 59 self.__manager = toolBarManager
58 self.__toolbarItems = {} # maps toolbar item IDs to toolbar items 60 self.__toolbarItems = {} # maps toolbar item IDs to toolbar items
59 self.__currentToolBarItem = None 61 self.__currentToolBarItem = None

eric ide

mercurial