Background progress bar
#1
When you're scraping new files you get a little progress bar at the top of XBMC (on confluence at least) which doesn't interfere with the use of the rest of XBMC. It just runs in the background.

Is there any way to implement this in an addon, so I can fetch the new games list for SteamBMC whilst showing the current one? The current progress bar completely prevents any other use of XBMC.

Thanks
Reply
#2
DialogProgressBG() if you have a recent build of XBMC

Quote: /**
* create(heading[, message]) -- Create and show a background progress dialog.\n
*\n
* heading : string or unicode - dialog heading\n
* message : [opt] string or unicode - message text\n
*\n
* *Note, 'heading' is used for the dialog's id. Use a unique heading.\n
* Use update() to update heading, message and progressbar.\n
*\n
* example:\n
* - pDialog = xbmcgui.DialogProgressBG()\n
* - pDialog.create('Movie Trailers', 'Downloading Monsters Inc. ...')\n
*/
void create(const String& heading, const String& message = emptyString) throw (WindowException);

/**
* update([percent, heading, message]) -- Updates the background progress dialog.\n
*\n
* percent : [opt] integer - percent complete. (0:100)\n
* heading : [opt] string or unicode - dialog heading\n
* message : [opt] string or unicode - message text\n
*\n
* *Note, To clear heading or message, you must pass a blank character.\n
*\n
* example:\n
* - pDialog.update(25, message='Downloading Finding Nemo ...')\n
*/
void update(int percent = 0, const String& heading = emptyString, const String& message = emptyString) throw (WindowException);

/**
* close() -- Close the background progress dialog\n
*\n
* example:\n
* - pDialog.close()\n
*/
void close();

/**
* isFinished() -- Returns True if the background dialog is active.\n
*\n
* example:\n
* - if (pDialog.isFinished()): return\n
*/
bool isFinished();

forgot pydocs are broken currently.
For python coding questions first see http://mirrors.xbmc.org/docs/python-docs/
Reply
#3
@Nuka1195, is this available in 12.2 or only nightlies?
Reply
#4
nightlies
For python coding questions first see http://mirrors.xbmc.org/docs/python-docs/
Reply

Logout Mark Read Team Forum Stats Members Help
Background progress bar0