[PyQt] About keyPressEvent

Sundance sundance at ierne.eu.org
Thu Aug 23 09:11:48 BST 2007


Gustavo A. Dí­az wrote:

> But this method is applied when you have a Menu bar right?

No.

This method is applied when you add an action to a QWidget, as I said in 
my previous email. It just so happens that if the QWidget is a menu or 
a toolbar, Qt creates a menu entry or a toolbutton, respectively, but 
you can also add a QAction to any other widget.

Okay, so. Before anything else -- sorry for asking, but you never 
know -- did you make sure that the Alt+Esc shortcut is not being 
preempted by something else, like your window manager for instance?

-- S.



More information about the PyQt mailing list