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


_______________________________________________
Eric mailing list
[email protected]
http://www.riverbankcomputing.com/mailman/listinfo/eric

Reply via email to