38 @param newByte new byte value |
38 @param newByte new byte value |
39 @type int (range 0 to 255) |
39 @type int (range 0 to 255) |
40 @param parent reference to the parent command |
40 @param parent reference to the parent command |
41 @type QUndoCommand |
41 @type QUndoCommand |
42 """ |
42 """ |
43 super(HexEditUndoCommand, self).__init__(parent) |
43 super().__init__(parent) |
44 |
44 |
45 self.__chunks = chunks |
45 self.__chunks = chunks |
46 self._pos = pos |
46 self._pos = pos |
47 self._newByte = newByte |
47 self._newByte = newByte |
48 self._cmd = cmd |
48 self._cmd = cmd |
118 @param chunks reference to the data container |
118 @param chunks reference to the data container |
119 @type HexEditChunks |
119 @type HexEditChunks |
120 @param parent reference to the parent object |
120 @param parent reference to the parent object |
121 @type QObject |
121 @type QObject |
122 """ |
122 """ |
123 super(HexEditUndoStack, self).__init__(parent) |
123 super().__init__(parent) |
124 |
124 |
125 self.__chunks = chunks |
125 self.__chunks = chunks |
126 self.__parent = parent |
126 self.__parent = parent |
127 |
127 |
128 def insert(self, pos, data): |
128 def insert(self, pos, data): |