I am going round and round in steadily increasing frustration trying
to find the constants for button events in Pygobject/Gtk 3.

I have the following imports:-

    import gi
    gi.require_version('Gtk', '3.0')
    from gi.repository import Gtk
    from gi.repository import Gdk


The old GTK 2 code had (I think):-

    if (event.type == gtk.gdk.BUTTON_PRESS):


So what is BUTTON_PRESS in the new version, I simply can't find a
straightforward description of it or example of its use.


-- 
Chris Green
ยท
-- 
https://mail.python.org/mailman/listinfo/python-list

Reply via email to