Help with Kodi/ Pycharm IDE
#1
Hi,
I have some experience with scripting, but am trying to teach myself Python and Kodi simultaneously.
I've gone through the wiki, but still don't get the relationship of XBMC, XBMCGUI to an IDE.
Am I correct in that there is no way to import XMBC module into Pycharm to call the Python functions ?

What I want to do is something fairly basic initially, like seek at time in the player
xbmc.Player.seekTime (self,pTime)

Should I use python-xmbc to do it?

https://github.com/jcsaaddupuy/python-xbmc

I'm just looking for an example to get me over the initial hump.
Thanks,
Jack
Reply
#2
Kodi Python API modules do not exist outside Kodi, so the answer is "no". There are xbmcstubs, but they are meant only for code autocompletion and quick help. They do not contain any executable code, unless you add some testing code yourself.

As for "python-xbmc", it has nothing to do with your question.
Reply
#3
Hi,
Thanks for your response.

Actually, I just got it to work late last night using python-xbmc (https://github.com/jcsaaddupuy/python-xbmc, now known as xbmc-json)

There was a bug with Python 3.4 compatibility, just resolved (https://github.com/jcsaaddupuy/python-xbmc/pull/7)

Once I applied the fix, I was able to using the following from PyCharm to open a new weather window in Kodi.

xbmc.GUI.ActivateWindow({"window":"weather"})
Reply

Logout Mark Read Team Forum Stats Members Help
Help with Kodi/ Pycharm IDE0