eric6/IconEditor/IconEditorPalette.py

changeset 8259
2bbec88047dd
parent 8218
7c09585bd960
equal deleted inserted replaced
8258:82b608e352ec 8259:2bbec88047dd
32 32
33 @param parent reference to the parent widget (QWidget) 33 @param parent reference to the parent widget (QWidget)
34 """ 34 """
35 super().__init__(parent) 35 super().__init__(parent)
36 36
37 if self.layoutDirection == Qt.Orientation.Horizontal: 37 direction = (
38 direction = QBoxLayout.Direction.LeftToRight 38 QBoxLayout.Direction.LeftToRight
39 else: 39 if self.layoutDirection == Qt.Orientation.Horizontal else
40 direction = QBoxLayout.Direction.TopToBottom 40 QBoxLayout.Direction.TopToBottom
41 )
41 self.__layout = QBoxLayout(direction, self) 42 self.__layout = QBoxLayout(direction, self)
42 self.setLayout(self.__layout) 43 self.setLayout(self.__layout)
43 44
44 self.__preview = QLabel(self) 45 self.__preview = QLabel(self)
45 self.__preview.setFrameStyle(QFrame.Shape.Panel | QFrame.Shadow.Sunken) 46 self.__preview.setFrameStyle(QFrame.Shape.Panel | QFrame.Shadow.Sunken)

eric ide

mercurial