Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

Hello everyone I am trying to make a simple video player using Gtk3 python & Gstreamer. I am also using Clutter,ClutterGtk & ClutterGst

The problem arises when initialise the ClutterGst like:

ClutterGst.init()

but I dont know the argument which should be passed here. If I try sys.argv my Gtk window disappears.

share|improve this question
add comment

1 Answer

You start by initializing ClutterGtk, then GstClutter, both with sys.argv, then everything should work fine.

Take a look at audience's initialization code for example: http://bazaar.launchpad.net/~audience-members/audience/trunk/view/head:/Audience/Audience.vala#L898 (not sure if the X.init_threads is really necessary, but there were some strange problems in Audience which were (probably) solved with this)

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.