QScintilla/Shell.py

changeset 536
6d8d39753c82
parent 500
c3abc7895a01
child 564
b3d966393ba9
equal deleted inserted replaced
535:4b00d7336e19 536:6d8d39753c82
13 from PyQt4.QtCore import * 13 from PyQt4.QtCore import *
14 from PyQt4.QtGui import * 14 from PyQt4.QtGui import *
15 from PyQt4.Qsci import QsciScintilla 15 from PyQt4.Qsci import QsciScintilla
16 16
17 from E5Gui.E5Application import e5App 17 from E5Gui.E5Application import e5App
18 from E5Gui import E5MessageBox
18 19
19 from . import Lexers 20 from . import Lexers
20 from .QsciScintillaCompat import QsciScintillaCompat 21 from .QsciScintillaCompat import QsciScintillaCompat
21 22
22 import Preferences 23 import Preferences
1354 fname = url.toLocalFile() 1355 fname = url.toLocalFile()
1355 if fname: 1356 if fname:
1356 if not QFileInfo(fname).isDir(): 1357 if not QFileInfo(fname).isDir():
1357 self.vm.openSourceFile(fname) 1358 self.vm.openSourceFile(fname)
1358 else: 1359 else:
1359 QMessageBox.information(None, 1360 E5MessageBox.information(self,
1360 self.trUtf8("Drop Error"), 1361 self.trUtf8("Drop Error"),
1361 self.trUtf8("""<p><b>{0}</b> is not a file.</p>""") 1362 self.trUtf8("""<p><b>{0}</b> is not a file.</p>""")
1362 .format(fname)) 1363 .format(fname))
1363 event.acceptProposedAction() 1364 event.acceptProposedAction()
1364 elif event.mimeData().hasText(): 1365 elif event.mimeData().hasText():

eric ide

mercurial