Exemple #1
0
 def event(self, e):
     if callable(self.file_event_hook) and e.type() == QEvent.FileOpen:
         path = unicode(e.file())
         if os.access(path, os.R_OK):
             with self._file_open_lock:
                 self._file_open_paths.append(path)
             QTimer.singleShot(1000, self._send_file_open_events)
         return True
     else:
         return QApplication.event(self, e)