ocarina/ocarina.py
Bryan Schumaker 4f371987a0 Version strings
Libsaria and Ocarina have a __vers__ variable.  This contains a string
with the official version (eg. "Ocarina 4.1-dev" or "Libsaria 1.1").
"-dev" means that there have been changes since the last official
version.
2010-10-24 17:22:24 -04:00

28 lines
521 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
libsaria.init()
libsaria.init_pref("window_size", (800,600))
prefs = libsaria.prefs
win = ocarina.get_window(prefs["window_size"])
ocarina.set_window_title(ocarina.__vers__)
ocarina.add_tab("Library", collection.Library())
ocarina.add_tab("Playlist", collection.Playlist())
after = now()
print "Startup took:", after-before
ocarina.startup()