2018-07-14, 21:09
I'm at a loss. While developing PlexKodiConnect, if I use show() like this:
On the other hand, using doModal() works as expected:
I'm trying to re-write some code from Plex for Kodi, where show() works just fine. What am I missing?
Edit: Link to working show(): Plex for Kodi
any key presses are NOT captured by the add-on.python:
class TestWindow(xbmcgui.Window):
def onAction(self, action):
LOG.debug('onAction: %s', action)
window = TestWindow()
window.show()
time.sleep(10)
window.close()
On the other hand, using doModal() works as expected:
and key presses are all logged.python:
class TestWindow(xbmcgui.Window):
def onAction(self, action):
LOG.debug('onAction: %s', action)
window = TestWindow()
window.doModal()
I'm trying to re-write some code from Plex for Kodi, where show() works just fine. What am I missing?
Edit: Link to working show(): Plex for Kodi