9 text_generic
= "Free wheel: "
11 jclient_name
= "jack_freewheel_button"
13 def on_button_toggled(button
):
14 if button
.get_active():
15 button
.set_label(text_generic
+text_freewheel
)
18 button
.set_label(text_generic
+text_rtwheel
)
19 button
.set_sensitive(True)
23 if jack
.get_freewheel() > 0:
24 if button
.get_active() == False:
25 button
.set_active(True)
26 button
.set_sensitive(False)
28 button
.set_active(False)
34 window
.set_title("JACK time wheel control")
35 window
.set_resizable(False)
36 window
.set_decorated(False)
38 button
= gtk
.ToggleButton()
39 button
.set_active(False)
40 button
.set_label(text_generic
+text_rtwheel
)
43 window
.connect("delete-event", gtk
.main_quit
);
44 button
.connect("toggled", on_button_toggled
);
48 jack
.attach(jclient_name
)
50 glib
.timeout_add(300, timeout
)