[pygtk] GtkWarning: gdk_drawable_get_display
Danny Milosavljevic
danny.milo at gmx.net
Sat Apr 8 01:32:51 WST 2006
Hi,
Am Freitag, den 07.04.2006, 14:27 +0200 schrieb Sandro Dentella:
> when emitting a 'key-press-event' I get this warnng: what does that
> mean. How can I fix it? This is the code that generates the warning:
>
> entry = gtk.Entry()
> event = gtk.gdk.Event(gtk.gdk.KEY_PRESS)
> event.keyval = ord(".")
> entry.emit('key-press-event',event)
>
> entry2.py:11: GtkWarning: gdk_drawable_get_display: assertion `GDK_IS_DRAWABLE (drawable)' failed
> entry.emit('key-press-event',event)
> entry2.py:11: GtkWarning: gdk_keymap_get_for_display: assertion `GDK_IS_DISPLAY (display)' failed
> entry.emit('key-press-event',event)
> entry2.py:11: GtkWarning: gdk_window_set_cursor: assertion `GDK_IS_WINDOW (window)' failed
> entry.emit('key-press-event',event)
>
You didn't set event.window
>
>
> I'm using pygtk 2.8.2 and python 2.4.
>
> TIA
> sandro
> *:-)
>
> PS: how can I emit a 'BackSpace'?
Check gtk.keysyms for a list...
cheers,
Danny
More information about the pygtk
mailing list