2015-06-04, 21:29
I know very little about python within xbmc.
I'm trying to toggle a skin setting when the info key is pressed within the home window.
Really lost on this, i just can't get it to work.
I'm trying to toggle a skin setting when the info key is pressed within the home window.
Really lost on this, i just can't get it to work.
Code:
import xbmc
import xbmcgui
ACTION_SHOW_INFO = 11
class MyClass(xbmcgui.WindowXML):
def onAction(self, action):
if action == ACTION_SHOW_INFO:
if xbmc.getCondVisibility('[Control.HasFocus(8001)]') == 1:
xbmc.executebuiltin("XBMC.Skin.ToggleSetting(HomeInfo)")
else:
xbmc.executebuiltin("Skin.Reset(HomeInfo)")