[PyQt] Bug with eventFocus
projetmbc
projetmbc at club-internet.fr
Fri Apr 10 16:42:16 BST 2009
Hello,
the fllowing code doesn't work.
Best regards.
================================
class MyFrame(QtGui.QFrame):
def __init__(self, parent, titre, pixmapfile):
QtGui.QFrame.__init__(self, parent, QtCore.Qt.Tool)
self.setWindowTitle(titre)
rect = QtCore.QRect(QtGui.QCursor.pos(), pixmapfile.size())
self.setGeometry(rect)
self.setFixedSize(pixmapfile.size())
label = QtGui.QLabel(self)
label.setPixmap(pixmapfile)
label.show()
def focusInEvent(self, event):
print 'The focus IN event is not detected. Why ?'
More information about the PyQt
mailing list