[PyKDE] [PyQt4] application shortcut

Jürgen Urner jUrner at arcor.de
Wed Aug 2 11:35:34 BST 2006


Hello all

I am trying to assign a global hotkey to one of my guis.
The best guess I made to achieve this was:

ApplicationShortcut = 2
widget.grabShortcut(
        QtGui.QKeySequence("Ctrl+0"),
        ApplicationShortcut,
        )

...won't work 'cos it raises TypeError on argument 2.
So, where is ShortcutContext or ApplicationShortcut in PyQt4?
enum Qt::ShortcutContext   
    ApplicationShortcut

Or is there any other way that this is supposed to be done?

Thanks in advance

    Juergen










More information about the PyQt mailing list