On 2012-01-12 at 10:50, Josiah Baldwin wrote: > > from gi.repository import GtkClutter as cluttergtk > from gi.repository import Clutter as clutter > from gi.repository import Gtk as gtk > > self.clutterembed.get_stage() always returns None, so obviously I > can't set the color and the application crashes. So, the question is, > why does it return None? Is there a new way of setting up a > clutter-gtk stage that I am unaware of?
you need to explicitly initialize gtk, clutter, and cluttergtk; specifically, you need to call: GtkClutter.init(sys.args[]) and call that function *only*. do not try to call Gtk.init() and Clutter.init() separately: it will break stuff like event handling. the initialization of Gtk, Clutter, and GtkClutter with the old style static bindings was done automatically on import; this also had its own issues - specifically of ordering. the initialization has been moved to being explicit with the new style introspection-based bindings. ciao, Emmanuele. -- Emmanuele Bassi, Intel Open Source Technology Center _______________________________________________ clutter-app-devel-list mailing list [email protected] http://lists.clutter-project.org/listinfo/clutter-app-devel-list
