Set central window property

Always have the latest properties and will clean up the code. Will
centralize the rest of the code a bit later.
This commit is contained in:
angelblue05 2015-08-24 02:39:19 -05:00
parent d9906141fe
commit 475a671d08

View file

@ -269,6 +269,16 @@ def settings(setting, value = None):
else: else:
return addon.getSetting(setting) return addon.getSetting(setting)
def window(property, value = None, clear = False):
# Get or set window property
WINDOW = xbmcgui.Window(10000)
if clear:
WINDOW.clearProperty(property)
elif value:
WINDOW.setProperty(property, value)
else:
return WINDOW.getProperty(property)
def normalize_string(text): def normalize_string(text):
# For theme media, do not modify unless # For theme media, do not modify unless
# modified in TV Tunes # modified in TV Tunes