3 import gst, gtk, gobject
5 from videoplayer import videoplayer
6 from audioplayer import audioplayer
18 print("GTK Not Availible")
27 self.wTree = gtk.glade.XML( "main.glade" )
30 "on_quit_clicked" : self.quit,
31 "on_video_realize" : self.on_video_realize,
34 self.wTree.signal_autoconnect( dic )
36 self.drawingarea = self.wTree.get_widget("video")
38 print self.drawingarea
40 self.audio = audioplayer(self)
41 self.audio.play('file:///mnt/dl/dkuug/video/osd10/dan/dan.wav');
43 self.video = videoplayer(self)
44 self.video.play('file:///mnt/dl/dkuug/video/osd10/dan/dan.dv')
47 self.wTree.get_widget('hpaned6').add(self.tree.get_tree())
49 print self.wTree.get_widget('dMain').show()
51 self.wTree.visible = True
54 def on_destroy(self, window):
55 self.playbin.set_state(gst.STATE_NULL)
58 def on_video_realize(self, sender):
60 print self.drawingarea.window.xid
62 def quit(self, widget):
66 if __name__ == "__main__":
69 except KeyboardInterrupt: