[prev in list] [next in list] [prev in thread] [next in thread]
List: pykde
Subject: Re: [PyKDE] [PyQt4] application shortcut
From: Phil Thompson <phil () riverbankcomputing ! co ! uk>
Date: 2006-08-02 10:46:24
Message-ID: 200608021146.24416.phil () riverbankcomputing ! co ! uk
[Download RAW message or body]
On Wednesday 02 August 2006 11:35 am, Jürgen Urner wrote:
> 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?
QtCore.Qt.ApplicationShortcut
Phil
_______________________________________________
PyKDE mailing list PyKDE@mats.imk.fraunhofer.de
http://mats.imk.fraunhofer.de/mailman/listinfo/pykde
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic