Skip to content

Instantly share code, notes, and snippets.

@monkey-codes
Created November 17, 2016 06:48
Show Gist options
  • Select an option

  • Save monkey-codes/39b9e73268bcb925e66808c207600cbe to your computer and use it in GitHub Desktop.

Select an option

Save monkey-codes/39b9e73268bcb925e66808c207600cbe to your computer and use it in GitHub Desktop.
Kodi - passing arguments to XML window
def cmd_display_current_location(*args):
window = xbmcgui.WindowXMLDialog('custom-DialogVPNInfo.xml',xbmcaddon.Addon().getAddonInfo('path').decode('utf-8'), 'default', '1080p')
win =xbmcgui.Window(10001)
win.setProperty( 'VPN.ExitNode' , 'Brisbane, Australia')
#Property can be accessed in the XML using:
#<label fallback="416">$INFO[Window(10001).Property(VPN.ExitNode)]</label>
window.doModal()
del window
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment