2012-11-17, 08:27
Hello, i have two questions. When i write doModal to show my page, then it seens cant do other thing after the doModal function.[/php]
so i write a test case ,my code like this
it is surely write "run" to my log file
and i think the result is show the Home page, but is not ,why? I check xbmc log file not show any errros.
i also try the other case like this
the final result is Home page, this is ok , but when i remove the latest line ,my custom window cant show correctly
it did not run onInit(self) of MyWindow class... this is the other one problem.
so i write a test case ,my code like this
PHP Code:
window = MyWindow("main.xml",os.getcwd)
window.doModal()
del window
logfile = file("mylog","a")
logfile.write("run\n")
logfile.close()
xbmc.executebuiltin('ActivateWindow(Home)')
and i think the result is show the Home page, but is not ,why? I check xbmc log file not show any errros.
i also try the other case like this
PHP Code:
window = MyWindow("main.xml",os.getcwd)
window.doModal()
del window
logfile = file("mylog","a")
logfile.write("run\n")
logfile.close()
xbmc.executebuiltin('ActivateWindow(Home)')
it did not run onInit(self) of MyWindow class... this is the other one problem.