[Eric] Hack for metacity / autocomplete focus bug
cadevel
cadevel at free.fr
Tue May 5 09:13:37 BST 2009
Hello ,
i've written a small hack to correct the focus problem with autocomplete
and metacity (Gnome window manager)
just add this method in class QsciScintillaCompat ()
def keyPressEvent(self, evt) :
wa = self.isListActive()
QsciScintilla.keyPressEvent(self, evt)
if not wa and self.isListActive() :
for i in self.children() :
if isinstance(i, QListWidget) :
i.setWindowFlags(Qt.ToolTip |Qt.WindowStaysOnTopHint)
i.show()
and change
from PyQt4.QtGui import QApplication, QPalette
to
from PyQt4.QtGui import QApplication, QPalette,QListWidget
Warning:
this works for me
but I didn't try it elsewhere
A better solution can be to change the window flags of this QListWidget
in QScintilla
------
Christophe Antoine
More information about the Eric
mailing list