about after window doModal and show question
#1
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
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 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
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)'
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.
Reply
#2
(2012-11-17, 08:27)beginerr0 Wrote: 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
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 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
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)'
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.

os.getcwd does not work in Eden and newer versions. You need to use:
Code:
xbmcaddon.Addon( "addon name(ie script.whatever)" ).getAddonInfo('path')
Reply
#3
domodal blocks everything until you close the window. put the logging inside your gui class.

we need a domodeless. that way the window could run in the background so to speak.
For python coding questions first see http://mirrors.xbmc.org/docs/python-docs/
Reply
#4
Hi

is there any news on making a window domodeless? im making a addon where i would like to show dialogextendeddialogprogress but without locking the screen. Is that possible?

cheers
c_bb
Reply

Logout Mark Read Team Forum Stats Members Help
about after window doModal and show question0