E5Gui/E5TabWidget.py

changeset 1131
7781e396c903
parent 945
8cd4d08fa9f6
child 1416
c547d0b2e9c6
equal deleted inserted replaced
1130:3e9f0330f833 1131:7781e396c903
19 """ 19 """
20 Constructor 20 Constructor
21 21
22 @param parent reference to the parent widget (QWidget) 22 @param parent reference to the parent widget (QWidget)
23 """ 23 """
24 QTabBar.__init__(self, parent) 24 super().__init__(parent)
25 self._tabWidget = parent 25 self._tabWidget = parent
26 26
27 def wheelEvent(self, event): 27 def wheelEvent(self, event):
28 """ 28 """
29 Protected slot to support wheel events. 29 Protected slot to support wheel events.
136 Constructor 136 Constructor
137 137
138 @param parent reference to the parent widget (QWidget) 138 @param parent reference to the parent widget (QWidget)
139 @keyparam dnd flag indicating the support for Drag & Drop (boolean) 139 @keyparam dnd flag indicating the support for Drag & Drop (boolean)
140 """ 140 """
141 QTabWidget.__init__(self, parent) 141 super().__init__(parent)
142 142
143 if dnd: 143 if dnd:
144 if not hasattr(self, 'setMovable'): 144 if not hasattr(self, 'setMovable'):
145 self.__tabBar = E5DnDTabBar(self) 145 self.__tabBar = E5DnDTabBar(self)
146 self.__tabBar.tabMoveRequested.connect(self.moveTab) 146 self.__tabBar.tabMoveRequested.connect(self.moveTab)

eric ide

mercurial