Skip to content

@owais /gist:1759658
Created

Embed URL

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
GtkClutter PyGobject
from gi.repository import Gtk, Clutter, GtkClutter
def pressed(w, e):
print w, e
GtkClutter.init([])
window = Gtk.Window.new(Gtk.WindowType.TOPLEVEL)
vbox = Gtk.VBox.new(False, 6)
window.add(vbox)
vbox.show()
button = Gtk.Button("New BUtton")
vbox.pack_end(button, False, False, 0)
button.show()
window.connect("hide", Gtk.main_quit)
embed = GtkClutter.Embed.new()
vbox.pack_start(embed, True, True, 0)
embed.show()
embed.set_size_request(200, 200)
stage = embed.get_stage()
stage.set_color(Clutter.Color.new(0x00,0x00,0x00,0xff))
stage.show()
stage.connect("button-press-event", pressed)
window.show()
Gtk.main()
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.