eric6/E5Gui/E5TabWidget.py

changeset 8218
7c09585bd960
parent 8143
2c730d5fd177
child 8243
cc717c2ae956
equal deleted inserted replaced
8217:385f60c94548 8218:7c09585bd960
23 """ 23 """
24 Constructor 24 Constructor
25 25
26 @param parent reference to the parent widget (QWidget) 26 @param parent reference to the parent widget (QWidget)
27 """ 27 """
28 super(E5WheelTabBar, self).__init__(parent) 28 super().__init__(parent)
29 self._tabWidget = parent 29 self._tabWidget = parent
30 30
31 def wheelEvent(self, event): 31 def wheelEvent(self, event):
32 """ 32 """
33 Protected slot to support wheel events. 33 Protected slot to support wheel events.
145 Constructor 145 Constructor
146 146
147 @param parent reference to the parent widget (QWidget) 147 @param parent reference to the parent widget (QWidget)
148 @param dnd flag indicating the support for Drag & Drop (boolean) 148 @param dnd flag indicating the support for Drag & Drop (boolean)
149 """ 149 """
150 super(E5TabWidget, self).__init__(parent) 150 super().__init__(parent)
151 151
152 if dnd: 152 if dnd:
153 if not hasattr(self, 'setMovable'): 153 if not hasattr(self, 'setMovable'):
154 self.__tabBar = E5DnDTabBar(self) 154 self.__tabBar = E5DnDTabBar(self)
155 self.__tabBar.tabMoveRequested.connect(self.moveTab) 155 self.__tabBar.tabMoveRequested.connect(self.moveTab)

eric ide

mercurial