Of course you can combine example 2 and 3 and get audio AND video
[python-gstreamer-examples] / example2_2.glade
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!-- Generated with glade 3.16.1 -->
3 <interface>
4 <requires lib="gtk+" version="3.10"/>
5 <object class="GtkImage" id="image1">
6 <property name="visible">True</property>
7 <property name="can_focus">False</property>
8 <property name="icon_name">audio-volume-high</property>
9 </object>
10 <object class="GtkImage" id="image2">
11 <property name="visible">True</property>
12 <property name="can_focus">False</property>
13 <property name="icon_name">audio-volume-muted</property>
14 </object>
15 <object class="GtkDialog" id="mainwindow">
16 <property name="can_focus">False</property>
17 <property name="title" translatable="yes">Beeeeeeeeeeeeeeeeeeeeeeeeeeeep!</property>
18 <property name="resizable">False</property>
19 <property name="destroy_with_parent">True</property>
20 <property name="type_hint">normal</property>
21 <property name="has_resize_grip">False</property>
22 <child internal-child="vbox">
23 <object class="GtkBox" id="dialog-vbox1">
24 <property name="can_focus">False</property>
25 <property name="orientation">vertical</property>
26 <property name="spacing">2</property>
27 <child internal-child="action_area">
28 <object class="GtkButtonBox" id="dialog-action_area1">
29 <property name="can_focus">False</property>
30 <property name="layout_style">end</property>
31 <child>
32 <object class="GtkButton" id="button1">
33 <property name="label" translatable="yes">Beeeeeeeep!</property>
34 <property name="visible">True</property>
35 <property name="can_focus">True</property>
36 <property name="receives_default">True</property>
37 <property name="image">image1</property>
38 <property name="always_show_image">True</property>
39 <signal name="clicked" handler="on_play_clicked" swapped="no"/>
40 </object>
41 <packing>
42 <property name="expand">False</property>
43 <property name="fill">True</property>
44 <property name="position">0</property>
45 </packing>
46 </child>
47 <child>
48 <object class="GtkButton" id="button2">
49 <property name="label" translatable="yes">No beeeeeep!</property>
50 <property name="visible">True</property>
51 <property name="can_focus">True</property>
52 <property name="receives_default">True</property>
53 <property name="image">image2</property>
54 <property name="always_show_image">True</property>
55 <signal name="clicked" handler="on_stop_clicked" swapped="no"/>
56 </object>
57 <packing>
58 <property name="expand">False</property>
59 <property name="fill">True</property>
60 <property name="position">1</property>
61 </packing>
62 </child>
63 <child>
64 <object class="GtkButton" id="button3">
65 <property name="label">gtk-quit</property>
66 <property name="visible">True</property>
67 <property name="can_focus">True</property>
68 <property name="receives_default">True</property>
69 <property name="use_stock">True</property>
70 <property name="always_show_image">True</property>
71 <signal name="clicked" handler="on_quit_clicked" swapped="no"/>
72 </object>
73 <packing>
74 <property name="expand">False</property>
75 <property name="fill">True</property>
76 <property name="position">2</property>
77 </packing>
78 </child>
79 </object>
80 <packing>
81 <property name="expand">False</property>
82 <property name="fill">True</property>
83 <property name="pack_type">end</property>
84 <property name="position">0</property>
85 </packing>
86 </child>
87 <child>
88 <object class="GtkLabel" id="label1">
89 <property name="visible">True</property>
90 <property name="can_focus">False</property>
91 <property name="label" translatable="yes">Beeeeeeeeeeeeeeeep?</property>
92 </object>
93 <packing>
94 <property name="expand">False</property>
95 <property name="fill">True</property>
96 <property name="position">1</property>
97 </packing>
98 </child>
99 </object>
100 </child>
101 </object>
102 </interface>