ocarina: Add settings button

Right now, clicking the button will print out some text.  I'll
eventually have it open a new tab for configuring Ocarina.
This commit is contained in:
Bryan Schumaker 2011-06-18 10:25:15 -04:00
parent e055976e07
commit a8aef66696
3 changed files with 12 additions and 0 deletions

View File

@ -94,6 +94,12 @@ def save_button(show):
export.save_playlist(loc)
return make_button(gtk.STOCK_SAVE, save_func, "Save Current Playlist", show)
def prefs_button(show):
def prefs_func():
from ocarina import settings
settings.show_page()
return make_button(gtk.STOCK_PREFERENCES, prefs_func, "Modify Settings", show)
def up_button(show):
def up_func():
from ocarina.body import footer

View File

@ -20,6 +20,7 @@ def add_button(name, button):
header_body.pack_start(entry.entry)
add_button( "OPEN", button.open_button(True))
add_button( "SAVE", button.save_button(True))
add_button( "PREFS", button.prefs_button(True))
sep = gtk.VSeparator()
sep.show()

View File

@ -0,0 +1,5 @@
# Bryan Schumaker (6 / 18 / 2011)
def show_page():
print "Showing settings page!"