示例#1
0
 def go_to_error(self, text):
     """Go to error if relevant"""
     match = get_error_match(unicode(text))
     if match:
         fname, lnb = match.groups()
         self.emit(SIGNAL("edit_goto(QString,int)"),
                   osp.abspath(fname), int(lnb))
示例#2
0
 def go_to_error(self, text):
     """Go to error if relevant"""
     match = get_error_match(unicode(text))
     if match:
         fname, lnb = match.groups()
         self.emit(SIGNAL("edit_goto(QString,int)"), osp.abspath(fname),
                   int(lnb))
示例#3
0
 def mouseMoveEvent(self, event):
     """Show Pointing Hand Cursor on error messages"""
     text = self.get_line_at(event.pos())
     if get_error_match(text):
         if not self.__cursor_changed:
             QApplication.setOverrideCursor(QCursor(Qt.PointingHandCursor))
             self.__cursor_changed = True
         event.accept()
         return
     if self.__cursor_changed:
         QApplication.restoreOverrideCursor()
         self.__cursor_changed = False
     ConsoleBaseWidget.mouseMoveEvent(self, event)
示例#4
0
 def mouseMoveEvent(self, event):
     """Show Pointing Hand Cursor on error messages"""
     text = self.get_line_at(event.pos())
     if get_error_match(text):
         if not self.__cursor_changed:
             QApplication.setOverrideCursor(QCursor(Qt.PointingHandCursor))
             self.__cursor_changed = True
         event.accept()
         return
     if self.__cursor_changed:
         QApplication.restoreOverrideCursor()
         self.__cursor_changed = False
     ConsoleBaseWidget.mouseMoveEvent(self, event)
示例#5
0
 def mouseReleaseEvent(self, event):
     """Go to error"""
     ConsoleBaseWidget.mouseReleaseEvent(self, event)
     text = self.get_line_at(event.pos())
     if get_error_match(text) and not self.hasSelectedText():
         self.emit(SIGNAL("go_to_error(QString)"), text)
示例#6
0
 def go_to_error(self, text):
     """Go to error if relevant"""
     match = get_error_match(unicode(text))
     if match:
         fname, lnb = match.groups()
         self.edit_script(fname, int(lnb))
示例#7
0
 def mouseReleaseEvent(self, event):
     """Go to error"""
     ConsoleBaseWidget.mouseReleaseEvent(self, event)            
     text = self.get_line_at(event.pos())
     if get_error_match(text) and not self.hasSelectedText():
         self.emit(SIGNAL("go_to_error(QString)"), text)
示例#8
0
 def go_to_error(self, text):
     """Go to error if relevant"""
     match = get_error_match(unicode(text))
     if match:
         fname, lnb = match.groups()
         self.edit_script(fname, int(lnb))