示例#1
0
文件: editor.py 项目: snarkturne/pyzo
 def focusInEvent(self, event):
     """ Test whether the file has been changed 'behind our back'
     """
     # Act normally to the focus event
     BaseTextCtrl.focusInEvent(self, event)
     # Test file change
     self.testWhetherFileWasChanged()
示例#2
0
 def focusInEvent(self, event):
     """ Test whether the file has been changed 'behind our back'
     """
     # Act normally to the focus event
     BaseTextCtrl.focusInEvent(self, event)
     # Test file change
     self.testWhetherFileWasChanged()
示例#3
0
文件: editor.py 项目: snarkturne/pyzo
 def showEvent(self, event=None):
     """ Capture show event to change title. """
     # Act normally
     if event:
         BaseTextCtrl.showEvent(self, event)
     
     # Make parser update
     pyzo.parser.parseThis(self)
示例#4
0
文件: editor.py 项目: snarkturne/pyzo
 def dropEvent(self, event):
     """ Drop files in the list. """
     if event.mimeData().hasUrls():
         # file: let the editorstack do the work.
         pyzo.editors.dropEvent(event)
     else:
         # text: act normal
         BaseTextCtrl.dropEvent(self, event)
示例#5
0
    def showEvent(self, event=None):
        """ Capture show event to change title. """
        # Act normally
        if event:
            BaseTextCtrl.showEvent(self, event)

        # Make parser update
        pyzo.parser.parseThis(self)
示例#6
0
 def dropEvent(self, event):
     """ Drop files in the list. """
     if event.mimeData().hasUrls():
         # file: let the editorstack do the work.
         pyzo.editors.dropEvent(event)
     else:
         # text: act normal
         BaseTextCtrl.dropEvent(self, event)
示例#7
0
文件: editor.py 项目: snarkturne/pyzo
 def dragMoveEvent(self, event):
     """ Otherwise cursor can get stuck.
     https://bitbucket.org/iep-project/iep/issue/252
     https://qt-project.org/forums/viewthread/3180
     """
     if event.mimeData().hasUrls():
         event.acceptProposedAction()
     else:
         BaseTextCtrl.dropEvent(self, event)
示例#8
0
 def dragMoveEvent(self, event):
     """ Otherwise cursor can get stuck.
     https://bitbucket.org/iep-project/iep/issue/252
     https://qt-project.org/forums/viewthread/3180
     """
     if event.mimeData().hasUrls():
         event.acceptProposedAction()
     else:
         BaseTextCtrl.dropEvent(self, event)