[PyQt] [PyKDE4] Default value for the second argument of
KAction.setShortcut() does not seem to work
dato at net.com.org.es
Sat Jan 12 11:16:06 GMT 2008
* Simon Edwards [Sat, 12 Jan 2008 11:40:53 +0100]:
> Adeodato Simó wrote:
>> This one time, I'm finding that KAction.setShortcut() can't work in
>> Python without passing a value for the second argument, whereas this
>> works in C++. Any chance you'd know why? Thanks.
> Looks like a bug in PyKDE4. The second arg doesn't have a default value
> like in the C++ version. I'll try to get this fixed in 4.0.1.
Great, thank you!
> Add the second arg like this (and close your eyes):
> kdeui.KAction.ShortcutTypes( \
> kdeui.KAction.ShortcutTypes(kdeui.KAction.ActiveShortcut) | \
Yeah, I was doing that. (Well, for those reading along at home, it can
be done slightly more compact, like this:
kdeui.KAction.ShortcutType(kdeui.KAction.ActiveShortcut | kdeui.KAction.DefaultShortcut)
Should be the same, right?
Adeodato Simó dato at net.com.org.es
Debian Developer adeodato at debian.org
Listening to: Miguel Bosé - Sara
More information about the PyQt