From: Einar Jørgen Haraldseid Date: Thu, 19 Jun 2014 10:32:10 +0000 (+0200) Subject: Added alt. glade file, changed frequency, use alt. glade file X-Git-Url: https://git.slaskete.net/python-gstreamer-examples/commitdiff_plain/d4b14a405d5f1c27931b71bfefa84f2c593f9b9e?ds=inline Added alt. glade file, changed frequency, use alt. glade file --- diff --git a/example2.py b/example2.py index 21d4dbb..90b8463 100755 --- a/example2.py +++ b/example2.py @@ -15,7 +15,7 @@ class Main: # Create gui bits and bobs self.wTree = Gtk.Builder() - self.wTree.add_from_file("example2.glade") + self.wTree.add_from_file("example2_2.glade") signals = { "on_play_clicked" : self.OnPlay, @@ -33,7 +33,7 @@ class Main: # Add an audiotestsrc element to the pipeline self.audiotestsrc = Gst.ElementFactory.make("audiotestsrc", "audio") - self.audiotestsrc.set_property("freq", 200) + self.audiotestsrc.set_property("freq", 800) self.pipeline.add(self.audiotestsrc) # Add a pulsesink element to the pipeline diff --git a/example2_2.glade b/example2_2.glade new file mode 100644 index 0000000..0a448f8 --- /dev/null +++ b/example2_2.glade @@ -0,0 +1,102 @@ + + + + + + True + False + audio-volume-high + + + True + False + audio-volume-muted + + + False + Beeeeeeeeeeeeeeeeeeeeeeeeeeeep! + False + True + normal + False + + + False + vertical + 2 + + + False + end + + + Beeeeeeeep! + True + True + True + image1 + True + + + + False + True + 0 + + + + + No beeeeeep! + True + True + True + image2 + True + + + + False + True + 1 + + + + + gtk-quit + True + True + True + True + True + + + + False + True + 2 + + + + + False + True + end + 0 + + + + + True + False + Beeeeeeeeeeeeeeeep? + + + False + True + 1 + + + + + +