src/eric7/HexEdit/HexEditGotoWidget.py

branch
eric7
changeset 10806
2f6df822e3b9
parent 10690
fab36645aa7d
child 11090
f5f5f5803935
equal deleted inserted replaced
10805:c114e9476034 10806:2f6df822e3b9
9 9
10 from PyQt6.QtCore import QRegularExpression, Qt, pyqtSlot 10 from PyQt6.QtCore import QRegularExpression, Qt, pyqtSlot
11 from PyQt6.QtGui import QRegularExpressionValidator 11 from PyQt6.QtGui import QRegularExpressionValidator
12 from PyQt6.QtWidgets import QWidget 12 from PyQt6.QtWidgets import QWidget
13 13
14 from eric7 import Globals 14 from eric7 import EricUtilities
15 from eric7.EricGui import EricPixmapCache 15 from eric7.EricGui import EricPixmapCache
16 16
17 from .Ui_HexEditGotoWidget import Ui_HexEditGotoWidget 17 from .Ui_HexEditGotoWidget import Ui_HexEditGotoWidget
18 18
19 19
171 index = int(txt, 10) 171 index = int(txt, 10)
172 172
173 # step 2: convert the integer to text using the new format 173 # step 2: convert the integer to text using the new format
174 if newFormat == "hex": 174 if newFormat == "hex":
175 txt = "{0:x}".format(index) 175 txt = "{0:x}".format(index)
176 txt = Globals.strGroup(txt, ":", 4) 176 txt = EricUtilities.strGroup(txt, ":", 4)
177 else: 177 else:
178 txt = "{0:d}".format(index) 178 txt = "{0:d}".format(index)
179 179
180 return txt 180 return txt

eric ide

mercurial