(self, event)
onmousemove
onmousemove
onmousemove
def mouseMoveEvent(self, event):
        """ onmousemove
        """
        loc_x = event.pos().x()
        loc_y = event.pos().y()

        if loc_x > self._breakpoint_linewidth + self._jumps_width:
            self.current_jump = -1
            index = self.pixel_to_line(loc_x, loc_y)

            if 0 <= index < self.visible_lines():
                self._current_line = index
                if index + self.pos < len(self._lines):
                    if isinstance(self._lines[index + self.pos], Instruction):
                        _instruction = self._lines[index + self.pos]
                        if _instruction.is_jump or _instruction.is_call:
                            self.current_jump = self._lines[index + self.pos].address

            # self.viewport().update(0, 0, self._breakpoint_linewidth + self._jumps_width, self.viewport().height())
            y_pos = self._header_height + (index * (self._char_height + self._ver_spacing))
            y_pos += (self._char_height * 0.5)
            y_pos -= self._ver_spacing
            self.viewport().update(0, 0, self.viewport().width(), self.viewport().height())
def mouseMoveEvent ( self , event ) : loc_x = event . pos ( ) . x ( ) loc_y = event . pos ( ) . y ( ) if loc_x > self . _breakpoint_linewidth + self . _jumps_width : self . current_jump = - 1 index = self . pixel_to_line ( loc_x , loc_y ) if 0 <= index < self . visible_lines ( ) : self . _current_line = index if index + self . pos < len ( self . _lines ) : if isinstance ( self . _lines [ index + self . pos ] , Instruction ) : _instruction = self . _lines [ index + self . pos ] if _instruction . is_jump or _instruction . is_call : self . current_jump = self . _lines [ index + self . pos ] . address # self.viewport().update(0, 0, self._breakpoint_linewidth + self._jumps_width, self.viewport().height()) y_pos = self . _header_height + ( index * ( self . _char_height + self . _ver_spacing ) ) y_pos += ( self . _char_height * 0.5 ) y_pos -= self . _ver_spacing self . viewport ( ) . update ( 0 , 0 , self . viewport ( ) . width ( ) , self . viewport ( ) . height ( ) )