I'm at a loss. This is the first time I've tried python and gtk and I don't know what's wrong. This code is based on the video tutorials at http://vimeo.com/26452876
I've tried it myself and it kept segfaulting, I've typed it from the video -letter-by-letter- and it still segfaults. I'm on Fedora 17 and don't know what's wrong. This code should just paint the window (built with glade: 2 boxes, a play button and a progress bar), set up a clutter stage and show that to me. As soon as I import ClutterGst or initialize it, it segfaults... What's wrong with that?
from gi.repository import Gtk, Clutter, GtkClutter, ClutterGst
import os, sys
UI_FILE = "Video-Player.ui"
self.builder = Gtk.Builder()
self.progress = self.builder.get_object('progress')
self.button = self.builder.get_object('button')
clutter_widget = GtkClutter.Embed()
self.videotexture = ClutterGst.VideoTexture()
stage = clutter_widget.get_stage()
box = self.builder.get_object('box')
self.window = self.builder.get_object('window')
def destroy(self, window):
app = VideoPlayer()
if __name__ == "__main__":