Skip to content
GitLab
  • Menu
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • pygobject pygobject
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 281
    • Issues 281
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 16
    • Merge requests 16
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • GNOME
  • pygobjectpygobject
  • Issues
  • #147
Closed
Open
Created Dec 22, 2017 by Bugzilla@bugzilla-migration💬Reporter

Crash when accessing the "string" attribute of GdkEventKey on 64bit Windows

Submitted by Christoph Reiter @creiter

Link to original bug (#791867)

Description

Reported here: https://github.com/Alexpux/MINGW-packages/issues/3228

from gi.repository import Gtk

#do_key_press_event(<Gdk.EventKey object at 0x0000000002f8f0e8 (void at 0x00000000029665a0)>) string=
#do_key_press_event(<Gdk.EventKey object at 0x0000000002f8f0e8 (void at 0x00000000029668c0)>) string=
#**
#ERROR:../../pygobject-3.26.1/gi/pygi-argument.c:1004:_pygi_argument_to_object: code should not be reached

class KeyEventWindow(Gtk.Window):

    def do_key_press_event(self, event):
        print("do_key_press_event(%s) string=%s" % (event, event.string))

    def do_key_release_event(self, event):
        print("do_key_release_event(%s) string=%s" % (event, event.string))

if __name__ == "__main__":
    w = KeyEventWindow()
    w.show()
    Gtk.main()
Edited Jan 25, 2018 by Christoph Reiter
Assignee
Assign to
Time tracking