xbmc python dialog without any button - Printable Version +- Kodi Community Forum (https://forum.kodi.tv) +-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32) +--- Forum: Add-ons (https://forum.kodi.tv/forumdisplay.php?fid=26) +--- Thread: xbmc python dialog without any button (/showthread.php?tid=75685) Pages:
1
2
|
xbmc python dialog without any button - linuxluemmel - 2010-06-15 I would like to programm a xbmc script function that only shows txt "please wait ...." This window or dialog should not contain any button. Is this possible ? With the dialog xbmc function allways a button is inside Or even better has someone a code snippet ? regards from switzerland Hans - ppic - 2010-06-15 dialog progress doesn't sweets you? it a better way to have a cancel button no ? you can also update it to pass info to the user waiting in front of the dialog. - linuxluemmel - 2010-06-15 ppic Wrote:dialog progress doesn't sweets you? Sorry , I allready use a progressbar during a long copy inside the script ... just a little dialog or window "please wait" - No kind of a Button - If it would be possible to clean the progress bar from the cancel button ... this would be fine ... I guess this is not possible with xbmc python .... Or is it possible to load image (a little clock) as example and after a defined time the image go away ..... If I would like to sleep inside a script for 10 Secounds this should only signal that the script is running .... The python code is easy to code with sleep but as long I do sleep without any dialog-open it could seems the script is not handling correctly ... I hope someone could help Regards Hans - ppic - 2010-06-15 you can clean the progress bar by uodating it, and just write "please wait..." - linuxluemmel - 2010-06-15 ppic Wrote:you can clean the progress bar by uodating it, and just write "please wait..." Thanks ... this would work but there is still this cancel -button in the dialog ... Is there may way to overpaint the button .... ? Regards Hans If you would press the button nothing would happen .... - ppic - 2010-06-15 you can handle it: Code: if ( DIALOG_PROGRESS.iscanceled() ): break - linuxluemmel - 2010-06-16 ppic Wrote:you can handle it: Thank you I wonna try to implement a own busy-dialog. I guess this would be a nice feature enhancement for xbmc if you could do the following xbmc.busy(5) sleep(5) And during 5 secounds would be a animated gif on the screen. Regards Hans - ppic - 2010-06-16 you can also lock the gui if you want . - FrostBox - 2010-06-16 linuxluemmel Wrote:xbmc.busy(5) you can use busydialod in integrate in skin PHP Code: xbmc.executebuiltin( "ActivateWindow(busydialog)" ) cheers frost - linuxluemmel - 2010-06-16 FrostBox Wrote:you can use busydialod in integrate in skin Hallo frost You are my Hero .... Thanks ... this was exactly what I searched .... Merci mon vieux de canada ;-) Hans - linuxluemmel - 2010-06-16 FrostBox Wrote:you can use busydialod in integrate in skin Sorry ... I have written a little script ... no dialog comes to the front ... Could it be that the default skin Confluence doesn't have this dialog ? Code: [CODE] After the execution I had this inside the log ....... :03:01 T:2915359600 M:1692446720 NOTICE: -->Python Interpreter Initialized<-- 16:03:01 T:3023939456 M:1692291072 ERROR: Window Translator: Can't find window busydialog 16:03:01 T:3023939456 M:1692291072 ERROR: Activate/ReplaceWindow called with invalid destination window: busydialog 16:03:06 T:3023939456 M:1693245440 ERROR: XLCDproc::Initialize - Unable to connect to host. Retry in 16 seconds. 16:03:16 T:2915359600 M:1693212672 NOTICE: DVD-State value : 3 16:03:16 T:3023939456 M:1693212672 ERROR: Window Translator: Can't find window busydialog 16:03:22 T:3023939456 M:1693016064 ERROR: XLCDproc::Initialize - Unable to connect to host. Retry in 32 seconds. So it seems that busydialog is not valid inside Confluence .... - spiff - 2010-06-16 you're butchering the logs, but i'm fairly certain your build is outdated. - linuxluemmel - 2010-06-16 spiff Wrote:you're butchering the logs, but i'm fairly certain your build is outdated. Yes , you are right .... http://trac.xbmc.org/ticket/8733 Sorry .... Hans - FrostBox - 2010-06-16 hi linuxluemmel, I tested your code with 2 builds and confluence, work great PHP Code: import xbmc, time Code: 11:06:02 T:3384 M:294461440 NOTICE: ActivateWindow(busydialog) - linuxluemmel - 2010-06-16 FrostBox Wrote:hi linuxluemmel, Now I know ... In next coming release it will be shown ... thanks I saw that the xbmc function did return value 3 ..... Did you insert a dvd ? I can do what I want ... the python code allways have a return value 3 ...-( this would be the same problem I have http://forum.xbmc.org/showthread.php?tid=75584 Regards Hans |