eric6/IconEditor/IconEditorGrid.py

changeset 8218
7c09585bd960
parent 8143
2c730d5fd177
child 8222
5994b80b8760
equal deleted inserted replaced
8217:385f60c94548 8218:7c09585bd960
32 @param text text for the undo command (string) 32 @param text text for the undo command (string)
33 @param oldImage copy of the icon before the changes were applied 33 @param oldImage copy of the icon before the changes were applied
34 (QImage) 34 (QImage)
35 @param parent reference to the parent command (QUndoCommand) 35 @param parent reference to the parent command (QUndoCommand)
36 """ 36 """
37 super(IconEditCommand, self).__init__(text, parent) 37 super().__init__(text, parent)
38 38
39 self.__grid = grid 39 self.__grid = grid
40 self.__imageBefore = QImage(oldImage) 40 self.__imageBefore = QImage(oldImage)
41 self.__imageAfter = None 41 self.__imageAfter = None
42 42
119 """ 119 """
120 Constructor 120 Constructor
121 121
122 @param parent reference to the parent widget (QWidget) 122 @param parent reference to the parent widget (QWidget)
123 """ 123 """
124 super(IconEditorGrid, self).__init__(parent) 124 super().__init__(parent)
125 125
126 self.setAttribute(Qt.WidgetAttribute.WA_StaticContents) 126 self.setAttribute(Qt.WidgetAttribute.WA_StaticContents)
127 self.setSizePolicy(QSizePolicy.Policy.Minimum, 127 self.setSizePolicy(QSizePolicy.Policy.Minimum,
128 QSizePolicy.Policy.Minimum) 128 QSizePolicy.Policy.Minimum)
129 129

eric ide

mercurial