Ejemplo n.º 1
0
    def run(self, usePreseed=False):
        '''
			The method that determines what happens when the item is clicked in the settings GUI.
			Usually this would be __addon__.OpenSettings(), but it could be any other script.
			This allows the creation of action buttons in the GUI, as well as allowing developers to script and skin their 
			own user interfaces.
		'''

        log(
            xbmcaddon.Addon(
                "script.module.osmcsetting.networking").getAddonInfo('id'))

        me = xbmcaddon.Addon(self.addonid)
        scriptPath = me.getAddonInfo('path')

        xml = "network_gui_720.xml" if xbmcgui.Window(10000).getProperty(
            "SkinHeight") == '720' else "network_gui.xml"

        self.GUI = networking_gui(xml, scriptPath, 'Default')
        self.GUI.setUsePreseed(usePreseed)
        self.GUI.doModal()

        del self.GUI

        log('END')
Ejemplo n.º 2
0
    def open_settings_window(self):
        '''
			The method that determines what happens when the item is clicked in the settings GUI.
			Usually this would be __addon__.OpenSettings(), but it could be any other script.
			This allows the creation of action buttons in the GUI, as well as allowing developers to script and skin their 
			own user interfaces.
		'''

        log(
            xbmcaddon.Addon(
                "script.module.osmcsetting.networking").getAddonInfo('id'))

        me = xbmcaddon.Addon(self.addonid)
        scriptPath = me.getAddonInfo('path')

        self.GUI = networking_gui("network_gui.xml", scriptPath, 'Default')

        self.GUI.doModal()

        del self.GUI

        log('END')
Ejemplo n.º 3
0
	def run(self, usePreseed = False):

		'''
			The method that determines what happens when the item is clicked in the settings GUI.
			Usually this would be __addon__.OpenSettings(), but it could be any other script.
			This allows the creation of action buttons in the GUI, as well as allowing developers to script and skin their 
			own user interfaces.
		'''

		log(xbmcaddon.Addon("script.module.osmcsetting.networking").getAddonInfo('id'))

		me = xbmcaddon.Addon(self.addonid)
		scriptPath = me.getAddonInfo('path')

		xml = "network_gui_720.xml" if xbmcgui.Window(10000).getProperty("SkinHeight") == '720' else "network_gui.xml"

		self.GUI = networking_gui(xml, scriptPath, 'Default')
		self.GUI.setUsePreseed(usePreseed)
		self.GUI.doModal()

		del self.GUI

		log('END')