2010-05-28 02:38:06 +00:00
|
|
|
# -*- coding: utf-8 -*-
|
2010-07-13 01:09:42 +00:00
|
|
|
# Copyright (c) 2010 Correl J. Roush
|
2010-05-28 02:38:06 +00:00
|
|
|
|
|
|
|
import os
|
2011-12-06 06:24:37 +00:00
|
|
|
import sys
|
2010-05-28 02:38:06 +00:00
|
|
|
import xbmc
|
2010-06-10 17:10:31 +00:00
|
|
|
import xbmcaddon
|
2011-12-06 06:24:37 +00:00
|
|
|
|
2010-06-10 17:10:31 +00:00
|
|
|
__settings__ = xbmcaddon.Addon(id='script.transmission')
|
|
|
|
__language__ = __settings__.getLocalizedString
|
2010-05-28 02:38:06 +00:00
|
|
|
|
2011-12-06 06:24:37 +00:00
|
|
|
BASE_RESOURCE_PATH = xbmc.translatePath( os.path.join( __settings__.getAddonInfo('path'), 'resources', 'lib' ) )
|
|
|
|
sys.path.append (BASE_RESOURCE_PATH)
|
|
|
|
|
2010-05-28 02:38:06 +00:00
|
|
|
KEY_BUTTON_BACK = 275
|
|
|
|
KEY_KEYBOARD_ESC = 61467
|
|
|
|
|
|
|
|
if __name__ == '__main__':
|
|
|
|
from gui import TransmissionGUI
|
2011-12-06 06:24:37 +00:00
|
|
|
w = TransmissionGUI("script-Transmission-main.xml", __settings__.getAddonInfo('path') , "Default")
|
2010-05-28 02:38:06 +00:00
|
|
|
w.doModal()
|
|
|
|
del w
|