20 pyqtSlot, |
20 pyqtSlot, |
21 ) |
21 ) |
22 from PyQt6.QtGui import QFont, QKeySequence, QPainter, QPalette |
22 from PyQt6.QtGui import QFont, QKeySequence, QPainter, QPalette |
23 from PyQt6.QtWidgets import QAbstractScrollArea, QApplication |
23 from PyQt6.QtWidgets import QAbstractScrollArea, QApplication |
24 |
24 |
25 from eric7 import Globals |
25 from eric7 import EricUtilities |
26 from eric7.EricWidgets.EricApplication import ericApp |
26 from eric7.EricWidgets.EricApplication import ericApp |
27 from eric7.SystemUtilities import OSUtilities |
27 from eric7.SystemUtilities import OSUtilities |
28 |
28 |
29 from .HexEditChunks import HexEditChunks |
29 from .HexEditChunks import HexEditChunks |
30 from .HexEditUndoStack import HexEditUndoStack |
30 from .HexEditUndoStack import HexEditUndoStack |
1337 pxPosY = self.__pxCharHeight |
1337 pxPosY = self.__pxCharHeight |
1338 while row <= len(self.__dataShown) // self.BYTES_PER_LINE: |
1338 while row <= len(self.__dataShown) // self.BYTES_PER_LINE: |
1339 address = "{0:0{1}x}".format( |
1339 address = "{0:0{1}x}".format( |
1340 self.__bPosFirst + row * self.BYTES_PER_LINE, self.__addrDigits |
1340 self.__bPosFirst + row * self.BYTES_PER_LINE, self.__addrDigits |
1341 ) |
1341 ) |
1342 address = Globals.strGroup(address, ":", 4) |
1342 address = EricUtilities.strGroup(address, ":", 4) |
1343 painter.drawText(self.__pxPosAdrX - pxOfsX, pxPosY, address) |
1343 painter.drawText(self.__pxPosAdrX - pxOfsX, pxPosY, address) |
1344 # increment loop variables |
1344 # increment loop variables |
1345 row += 1 |
1345 row += 1 |
1346 pxPosY += self.__pxCharHeight |
1346 pxPosY += self.__pxCharHeight |
1347 |
1347 |