When I initialize a preference, the actual value of the preference should be returned to the caller.
28 lines
622 B
Python
Executable File
28 lines
622 B
Python
Executable File
#!/usr/bin/python2
|
|
# Bryan Schumaker (8/13/2010)
|
|
|
|
import datetime
|
|
now = datetime.datetime.now
|
|
before = now()
|
|
|
|
import libsaria
|
|
import ocarina
|
|
|
|
from ocarina import collection
|
|
|
|
width = libsaria.init_pref("ocarina.window.width", 800)
|
|
height = libsaria.init_pref("ocarina.window.height", 600)
|
|
|
|
win = ocarina.get_window((width, height))
|
|
ocarina.set_window_title("%s Your Music Everywhere" % ocarina.__vers__)
|
|
ocarina.set_window_icon("images/ocarina.png")
|
|
|
|
ocarina.add_tab("Playlist", collection.Playlist())
|
|
ocarina.add_tab("Library", collection.Library())
|
|
|
|
|
|
after = now()
|
|
print "Startup took:", after-before
|
|
|
|
ocarina.startup()
|