After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 363776 - keymap.translate_keyboard_state(event.hardware_keycode, event.state, event.group)
keymap.translate_keyboard_state(event.hardware_keycode, event.state, event.gr...
Status: RESOLVED WONTFIX
Product: pygtk
Classification: Bindings
Component: documentation
2.10.x
Other All
: Normal normal
: ---
Assigned To: Nobody's working on this now (help wanted and appreciated)
Python bindings maintainers
gnome[unmaintained]
Depends on:
Blocks:
 
 
Reported: 2006-10-20 21:50 UTC by Karsten Bräckelmann
Modified: 2018-08-17 13:37 UTC
See Also:
GNOME target: ---
GNOME version: 2.15/2.16



Description Karsten Bräckelmann 2006-10-20 21:50:43 UTC
+++ This bug was initially created as a clone of Bug #354731 +++

What were you doing when the application crashed?
attempting to set a shortcut key to bring up the deskbar in deskbar preferences.  the key i was attempting to set was specific to my model of keyboard (ms comfort curve 2000 usb) and is apparently mapped to 0x7a ("search" key).


Distribution: Ubuntu 6.10 (edgy)
Gnome Release: 2.16.0 2006-09-04 (Ubuntu)
BugBuddy Version: 2.16.0

Memory status: size: 0 vsize: 0 resident: 0 share: 0 rss: 0 rss_rlim: 0
CPU usage: start_time: 0 rtime: 0 utime: 0 stime: 0 cutime:0 cstime: 0 timeout: 0 it_real_value: 0 frequency: 0

Traceback (most recent call last):
  • File "/usr/lib/python2.4/site-packages/deskbar/ui/DeskbarPreferencesUI.py", line 103 in __on_key_press_event
    (keyval, egroup, level, consumed_modifiers) = keymap.translate_keyboard_state(event.hardware_keycode, event.state, event.group)
TypeError: unpack non-sequence

Comment 1 Karsten Bräckelmann 2006-10-20 21:56:11 UTC
bug 354731 comment 5, Rob Bradford
> This looks like a bug in the pygtk bindings. Since the documentation says it
> will always return the Keymap for the display. Therefore it is safe for deskbar
> to expect just that :)

bug 354731 comment 6, Johan Dahlin
> I think that the behavior is correct, this just needs to be reflected in the
> documentation.


The PyGTK documentation flaw about bug 354731, which is not a crash. ;)

Confirming as per these comments.
Comment 2 Karsten Bräckelmann 2006-10-20 22:03:35 UTC
Oh, right -- I'm not a Python hacker, so I just hope I got the description at
least somewhat correct. Feel free to adjust. ;)
Comment 3 André Klapper 2018-08-17 13:37:57 UTC
pygtk is not under active development anymore and had its last code changes
in 2013. Its codebase has been archived:
https://gitlab.gnome.org/Archive/pygtk/commits/master

PyGObject at https://gitlab.gnome.org/GNOME/pygobject is its successor. See https://pygobject.readthedocs.io/en/latest/guide/porting.html for porting info.

Closing this report as WONTFIX as part of Bugzilla Housekeeping to reflect
reality. Feel free to open a task in GNOME Gitlab if the issue described in this task still applies to a recent version of PyGObject. Thanks!