Skip to content
Create a gist now

Instantly share code, notes, and snippets.

GtkClutter PyGobject
from gi.repository import Gtk, Clutter, GtkClutter
def pressed(w, e):
print w, e
window =
vbox =, 6)
button = Gtk.Button("New BUtton")
vbox.pack_end(button, False, False, 0)
window.connect("hide", Gtk.main_quit)
embed =
vbox.pack_start(embed, True, True, 0)
embed.set_size_request(200, 200)
stage = embed.get_stage()
stage.connect("button-press-event", pressed)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.