From pykde Wed Aug 02 10:35:34 2006 From: =?ISO-8859-15?Q?J=FCrgen_Urner?= Date: Wed, 02 Aug 2006 10:35:34 +0000 To: pykde Subject: [PyKDE] [PyQt4] application shortcut Message-Id: <44D07FF6.9070909 () arcor ! de> X-MARC-Message: https://marc.info/?l=pykde&m=115451506126405 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 _______________________________________________ PyKDE mailing list PyKDE@mats.imk.fraunhofer.de http://mats.imk.fraunhofer.de/mailman/listinfo/pykde