eric6/HexEdit/HexEditWidget.py

changeset 8217
385f60c94548
parent 8205
4a0f1f896341
child 8218
7c09585bd960
equal deleted inserted replaced
8216:6a042a54e0f7 8217:385f60c94548
1530 self.__bSelectionBegin = self.__bSelectionInit 1530 self.__bSelectionBegin = self.__bSelectionInit
1531 self.__bSelectionEnd = self.__bSelectionInit 1531 self.__bSelectionEnd = self.__bSelectionInit
1532 else: 1532 else:
1533 if pos < 0: 1533 if pos < 0:
1534 pos = 0 1534 pos = 0
1535 pos = pos // 2 1535 pos //= 2
1536 self.__bSelectionInit = pos 1536 self.__bSelectionInit = pos
1537 self.__bSelectionBegin = pos 1537 self.__bSelectionBegin = pos
1538 self.__bSelectionEnd = pos 1538 self.__bSelectionEnd = pos
1539 1539
1540 self.selectionAvailable.emit(False) 1540 self.selectionAvailable.emit(False)
1546 @param pos position 1546 @param pos position
1547 @type int 1547 @type int
1548 """ 1548 """
1549 if pos < 0: 1549 if pos < 0:
1550 pos = 0 1550 pos = 0
1551 pos = pos // 2 1551 pos //= 2
1552 if pos >= self.__bSelectionInit: 1552 if pos >= self.__bSelectionInit:
1553 self.__bSelectionEnd = pos 1553 self.__bSelectionEnd = pos
1554 self.__bSelectionBegin = self.__bSelectionInit 1554 self.__bSelectionBegin = self.__bSelectionInit
1555 else: 1555 else:
1556 self.__bSelectionBegin = pos 1556 self.__bSelectionBegin = pos

eric ide

mercurial