Plugins and DialogProgress - 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: Plugins and DialogProgress (/showthread.php?tid=116091) |
Plugins and DialogProgress - Zelgadis87 - 2011-12-04 Hello guys! Kinda new to Python and addons development, so please bear with me! I'm on windows, using the latest nightly build of XBMC. I'm trying to launch a plugin from a .strm file (like the IceLibrary addon does, for example). The code works fine as long as I don't use any progress dialog; as soon as I create a DialogProgress, the GUI freezes completely. I do realize a progress dialog is automatically popped up when launching the strm file, but as far as I know it cannot be updated or customized in any way from within python, correct ? Any help would be appreciated - Zelgadis87 - 2011-12-06 To better illustrate the issue I'm referring to, I have uploaded a simple script: http://www.mediafire.com/download.php?t7a1jt682q1gd4c Install it in XBMC, then play the included Test.strm file (either by adding it to the library or from the files view, both have the same problem). XBMC gui will hang indefinitely. The logic keeps going (as can be seen by opening the log file); commenting the line that creates the progress dialog in default.py will 'fix' the freezing. - giftie - 2011-12-07 Zelgadis87 Wrote:To better illustrate the issue I'm referring to, I have uploaded a simple script: There are other methods to the DialogProgress class, besides create. Code: Methods defined here: So changing your script to this: Code: import xbmc, xbmcgui Uses all the methods. - Zelgadis87 - 2011-12-08 Yes but my problem is the progress bar is never actually displayed on screen: the interface freezes completely on the create line. Only solution in that case is to close XBMC from the task manager.. :/ - giftie - 2011-12-09 Zelgadis87 Wrote:Yes but my problem is the progress bar is never actually displayed on screen: the interface freezes completely on the create line. Only solution in that case is to close XBMC from the task manager.. :/ I guess you found a bug.. I put the code I had posted in my testing script and it worked flawlessly. But I guess calling it from the strm file causes problems. You will need to post a ticket on trac. - Zelgadis87 - 2011-12-09 giftie Wrote:I guess you found a bug.. I put the code I had posted in my testing script and it worked flawlessly. But I guess calling it from the strm file causes problems. I have created a ticket on trac (http://trac.xbmc.org/ticket/12274), thanks for confirming the issue. |