From d4b14a405d5f1c27931b71bfefa84f2c593f9b9e Mon Sep 17 00:00:00 2001 From: =?utf8?q?Einar=20J=C3=B8rgen=20Haraldseid?= Date: Thu, 19 Jun 2014 12:32:10 +0200 Subject: [PATCH] Added alt. glade file, changed frequency, use alt. glade file --- example2.py | 4 +- example2_2.glade | 102 +++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 104 insertions(+), 2 deletions(-) create mode 100644 example2_2.glade 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 + + + + + + -- 2.30.2