Getting kodi fullscreen status in python
#1
is there a way to get the fullscreen / windowed status of the screen?

trying this:

    def is_fullscreen(self):
        window = xbmcgui.Window(xbmcgui.getCurrentWindowId())
        mode = window.getProperty('fullscreen')
        print("FULLSCREEN?", mode)
        return mode.lower() == 'true'

but it returns nothing.

2023-07-29 17:00:43.421 T:8948    debug <general>: FULLSCREEN?
2023-07-29 17:00:43.421 T:8948    debug <general>:  
2023-07-29 17:00:43.421 T:8948    debug <general>:
2023-07-29 17:00:43.421 T:8948    debug <general>:

thanks for any help!
Reply
#2
Nevermind. The reason i needed this was because i was struggling getting things to fit properly on the screen. It all came down to me mistakenly using getScreenHeight instead of getHeight. Big difference. Figured it out after like 2 days. Cheers!
Reply
#3
Feel free to leave this unsolved if you think the answer might help someone in the future.
Reply

Logout Mark Read Team Forum Stats Members Help
Getting kodi fullscreen status in python0