Re: [PyQt] Keyboard shortcuts not working

2008-04-11 Thread Ulrich Berning
Karlo Lozovina wrote: On 4/11/08, Ulrich Berning <[EMAIL PROTECTED]> wrote: From the docs: "Actions are added to widgets using QWidget::addAction(). Note that an action must be added to a widget before it can be used; this is also true when the shortcut should be global (i.e., Qt::Application

Re: [PyQt] Keyboard shortcuts not working

2008-04-11 Thread Karlo Lozovina
On 4/11/08, Ulrich Berning <[EMAIL PROTECTED]> wrote: > From the docs: > "Actions are added to widgets using QWidget::addAction(). Note that an > action must be added to a widget before it can be used; this is also true > when the shortcut should be global (i.e., Qt::ApplicationShortcut as > Qt:

Re: [PyQt] Keyboard shortcuts not working

2008-04-11 Thread Ulrich Berning
Karlo Lozovina wrote: Hi guys! I'm trying to add keyboard shortcuts to my application, but I'm stuck at the beginning. Here is a simple application that I can't get to work: ### import sys from PyQt4.Qt import Qt from PyQt4.QtCore import QObject, SIGNAL from PyQt4.QtGui import QWidget, QApplic

Re: [PyQt] Keyboard shortcuts not working

2008-04-10 Thread Mark Summerfield
On 2008-04-10, Karlo Lozovina wrote: > Hi guys! > > I'm trying to add keyboard shortcuts to my application, but I'm stuck > at the beginning. Here is a simple application that I can't get to > work: One thing about QAction's: they only come into effect when the action has been added to a menu or a

[PyQt] Keyboard shortcuts not working

2008-04-10 Thread Karlo Lozovina
Hi guys! I'm trying to add keyboard shortcuts to my application, but I'm stuck at the beginning. Here is a simple application that I can't get to work: ### import sys from PyQt4.Qt import Qt from PyQt4.QtCore import QObject, SIGNAL from PyQt4.QtGui import QWidget, QApplication, QMainWindow, QActi