2015-12-17, 14:01
2015-12-17, 14:45
i don't think that one (the busy dialog) is accessible for python.
perhaps you can use one of these instead:
DialogProgressBG
Dialog-notification
perhaps you can use one of these instead:
DialogProgressBG
Dialog-notification
2015-12-17, 16:46
What about:
?
UPD: Just checked: it works.
PHP Code:
xbmc.executebuiltin('ActivateWindow(10138)')
xbmc.executebuiltin('Dialog.Close(10138)')
UPD: Just checked: it works.
2015-12-19, 01:29
Code:
def show_busy_dialog():
xbmc.executebuiltin('ActivateWindow(busydialog)')
def hide_busy_dialog():
xbmc.executebuiltin('Dialog.Close(busydialog)')
while xbmc.getCondVisibility('Window.IsActive(busydialog)'):
time.sleep(.1)
2015-12-19, 04:51
(2015-12-19, 01:29)Lunatixz Wrote:Code:def show_busy_dialog():
xbmc.executebuiltin('ActivateWindow(busydialog)')
def hide_busy_dialog():
xbmc.executebuiltin('Dialog.Close(busydialog)')
while xbmc.getCondVisibility('Window.IsActive(busydialog)'):
time.sleep(.1)
One small tweak - better to use xbmc.sleep(100), rather than time.sleep(.1) - my understanding is that we shouldn't be using time.sleep(), xbmc.sleep() allows for event processing, I could be wrong though.
2015-12-19, 12:14
(2015-12-19, 04:51)learningit Wrote: One small tweak - better to use xbmc.sleep(100), rather than time.sleep(.1) - my understanding is that we shouldn't be using time.sleep(), xbmc.sleep() allows for event processing, I could be wrong though.
BTW, I've always wondered: does xbmc.sleep release Python GIL like time.sleep does?