E5Gui/E5ToolBarManager.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 manager class. 7 Module implementing a toolbar manager class.
8 """ 8 """
9
10 from __future__ import unicode_literals # __IGNORE_WARNING__
9 11
10 from PyQt4.QtCore import QObject, QByteArray, QDataStream, QIODevice 12 from PyQt4.QtCore import QObject, QByteArray, QDataStream, QIODevice
11 from PyQt4.QtGui import QToolBar 13 from PyQt4.QtGui import QToolBar
12 14
13 import Utilities 15 import Utilities
26 Constructor 28 Constructor
27 29
28 @param ui reference to the user interface object (UI.UserInterface) 30 @param ui reference to the user interface object (UI.UserInterface)
29 @param parent reference to the parent object (QObject) 31 @param parent reference to the parent object (QObject)
30 """ 32 """
31 super().__init__(parent) 33 super(E5ToolBarManager, self).__init__(parent)
32 34
33 self.__mainWindow = None 35 self.__mainWindow = None
34 self.__ui = ui 36 self.__ui = ui
35 37
36 self.__toolBars = {} # maps toolbar IDs to actions 38 self.__toolBars = {} # maps toolbar IDs to actions

eric ide

mercurial