[Python] DialogWindow Question

Requests, suggestions, support, and everything else python / plugin related.
Post Reply
User avatar
Dom DXecutioner
Posts: 585
Joined: Thu Jul 05, 2012 11:59 pm
Location: California
Has thanked: 249 times
Been thanked: 219 times
Contact:

[Python] DialogWindow Question

Post by Dom DXecutioner »

Hello,

Does anyone know if it is possible to have a dialog window displayed showing some kind of information and setting the focus to the main active window; think DialogVideoScan; this dialog can be displayed whilst browsing any section of xbmc.

Thanks for your time.
Image
User avatar
Kozz
Posts: 238
Joined: Wed Jul 04, 2012 4:42 am
Has thanked: 22 times
Been thanked: 51 times

Re: [Python] DialogWindow Question

Post by Kozz »

Hey Dom

Dont know if this helps, you've probably seen this page, its got some info on making GUI dialouge stuff http://wiki.xbmc.org/index.php?title=HO ... on_Scripts

Someone else with better phthon knowledge can probably help better than I
Image
User avatar
Dom DXecutioner
Posts: 585
Joined: Thu Jul 05, 2012 11:59 pm
Location: California
Has thanked: 249 times
Been thanked: 219 times
Contact:

Re: [Python] DialogWindow Question

Post by Dom DXecutioner »

Thanks KoZz... I have that page; however, it does not speak of that which I need. Good try though :)
Image
User avatar
byron
Posts: 582
Joined: Wed Jul 04, 2012 9:26 pm
Location: Illinois
Has thanked: 27 times
Been thanked: 96 times

Re: [Python] DialogWindow Question

Post by byron »

Hey Dom...what is it exactly that you're wanting to accomplish?
Last edited by byron on Tue Mar 26, 2013 4:49 pm, edited 1 time in total.
User avatar
Dan Dar3
Posts: 1176
Joined: Sun Jul 08, 2012 4:09 pm
Has thanked: 273 times
Been thanked: 257 times
Contact:

Re: [Python] DialogWindow Question

Post by Dan Dar3 »

Hey Dom,

a non-modal progress dialog, like the library scan at the top of the screen?

Might be this:
http://xbmc.sourceforge.net/python-docs ... olProgress
http://wiki.xbmc.org/index.php?title=Progress_Control
User avatar
Dom DXecutioner
Posts: 585
Joined: Thu Jul 05, 2012 11:59 pm
Location: California
Has thanked: 249 times
Been thanked: 219 times
Contact:

Re: [Python] DialogWindow Question

Post by Dom DXecutioner »

@byron

I have a script that modifies the actors table in the videos db, fetches the movie actors, queries tmdb; if found, downloads the info and thumb and adds it to the actors table.

All this works, but I'd like to show a progress bar similar to the DialogVideoScan or DialogMusicScan.

@Dan

I can already show the progress window but I'd like the ability to continue browsing or viewing a video whilst scrapping and the only way I can do this at the moment is by simply running the script with no dialog displayed!

When I show the progress dialog, it takes the focus and I can't do anything else but watch the progress.
Image
User avatar
Dan Dar3
Posts: 1176
Joined: Sun Jul 08, 2012 4:09 pm
Has thanked: 273 times
Been thanked: 257 times
Contact:

Re: [Python] DialogWindow Question

Post by Dan Dar3 »

I'm not sure if you tried the ControlProgress or DialogProgress... DialogProgress for sure is a middle screen modal window, like you say.
The ControllProgress seems to have a position and a size as parameters, which gives me the idea that it can be displayed somewhere like at the top of the screen.

http://xbmc.sourceforge.net/python-docs ... olProgress
http://xbmc.sourceforge.net/python-docs ... ogProgress

Anywasy, don't mind me, thought it might help, just throwing ideas.
User avatar
byron
Posts: 582
Joined: Wed Jul 04, 2012 9:26 pm
Location: Illinois
Has thanked: 27 times
Been thanked: 96 times

Re: [Python] DialogWindow Question

Post by byron »

I gotcha, sounds fun...Maybe you've already tried this, but you could make a custom dialog. Tell the script (maybe add the command to the script?) to open it and show the progress with a progress control in the dialog with system.foo? Anyhow, that's about the best that I've got...sorry buddy.
Post Reply