31 lines
623 B
Python
31 lines
623 B
Python
# Bryan Schumaker (10/30/2010)
|
|
|
|
import ocarina
|
|
libsaria = ocarina.libsaria
|
|
lib_find_id = libsaria.collection.lib_find_id
|
|
lib_get_attr = libsaria.collection.lib_get_attr
|
|
invite = libsaria.event.invite
|
|
|
|
|
|
def tweak_icon(file):
|
|
if file != None:
|
|
ocarina.set_window_icon(file)
|
|
else:
|
|
ocarina.set_window_icon("images/ocarina.png")
|
|
|
|
def tweak_title(filepath):
|
|
if filepath != None:
|
|
id = lib_find_id(filepath)
|
|
title = lib_get_attr(id, "title")
|
|
else:
|
|
title = ocarina.__vers__
|
|
ocarina.set_window_title(title)
|
|
|
|
def start():
|
|
invite("POSTLOAD", tweak_title)
|
|
invite("POSTGETART", tweak_icon)
|
|
|
|
|
|
def stop():
|
|
pass
|