25 lines
666 B
Python
25 lines
666 B
Python
# Bryan Schumaker (6 / 18 / 2011)
|
|
|
|
import gtk
|
|
import libsaria
|
|
from ocarina import window
|
|
|
|
page = gtk.VBox()
|
|
text = "Experimental"
|
|
|
|
def toggled(button, func):
|
|
func(button.get_active())
|
|
|
|
def make_check_button(text, func, active):
|
|
button = gtk.CheckButton(text)
|
|
button.set_active(active)
|
|
button.connect("toggled", toggled, func)
|
|
return button
|
|
|
|
SERVER = make_check_button("Enable web server", libsaria.server.toggle_state, libsaria.server.get_state())
|
|
WINDOW_ART = make_check_button("Use album art as window icon", window.toggle_art_icon, window.get_art_icon_state())
|
|
|
|
page.pack_start(SERVER, False, False)
|
|
page.pack_start(WINDOW_ART, False, False)
|
|
page.show_all()
|