-
-
Save monkey-codes/39b9e73268bcb925e66808c207600cbe to your computer and use it in GitHub Desktop.
Kodi - passing arguments to XML window
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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