def close_the_page(): if var.guiMain != None: #Clear used global variables default.clear_home_variables() #Close the shown window var.guiMain.close()
def close_the_page(): if var.guiMain != None: #Stop the playing media xbmc.Player().stop() #Clear used global variables default.clear_home_variables() #Close the shown window var.guiMain.close()