Kodi Community Forum
PyXBMCt - Printable Version

Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32)
+--- Forum: Add-ons (https://forum.kodi.tv/forumdisplay.php?fid=26)
+---- Forum: Python 3 migration (https://forum.kodi.tv/forumdisplay.php?fid=281)
---- Thread: PyXBMCt (/showthread.php?tid=328436)



PyXBMCt - Wimpie - 2018-02-12

Is it possible that PyXBMCt returns str type strings instead of unicode strings?

My addon relies heavely on PyXBMCt . I did a test (used: from kodi_six import xbmc, xbmcgui, xbmcvfs) and browse_dialog.browseSingle() returns now a unicode instead of a str.

So far, success...

If I put this unicode string in a label (using the pyXBMCt module), then it get's displayed correctly (this unicode string has some non-ascii char inside to test).

However, if I do a getLabel() on this pyXBMCt label, it returns a str type string. I was hoping that this getLabel() call would return an unicode type string.

Is there a wrapper or new version of pyXBMCt  that would return unicode type strings?


PS: this is all tested in Kodi 17.6


RE: PyXBMCt - Roman_V_M - 2018-02-12

Python 3 compatible version is almost ready, and I'll publish it soon.


RE: PyXBMCt - Wimpie - 2018-02-12

(2018-02-12, 18:50)Roman_V_M Wrote: Python 3 compatible version is almost ready, and I'll publish it soon.
Thanks!


RE: PyXBMCt - Roman_V_M - 2018-03-12

I have submitted an updated Python 3-compatible version of PyXBMCt to Leia branch: https://github.com/xbmc/repo-scripts/pull/808

I've given some thoughts on which branch to submit the library to, and decided not to push it to lower branches/Kodi versions because of possible incompatibilities with existing addons.


RE: PyXBMCt - docwra - 2018-05-01

Just wanted to say thanks for this, I've been testing a few things and it works great!


RE: PyXBMCt - lunamoon - 2020-11-25

Hi, I have an addon that uses this incredible Pyxbmct library.

I'm trying to migrate it to Python 3 to make it work on Matrix, but when testing it I get this error: TypeError: 'focusTexture' is an invalid keyword argument for this function.

It seems to be related to a RadioButton that I use. From what I can read, that property (focusTexture) has been removed from the ControlRadioButton.

Would it be possible to correct this error in PyXbmct?

Thank you very much for your attention.


RE: PyXBMCt - Roman_V_M - 2020-11-29

I know about the issue: https://github.com/romanvm/script.module.pyxbmct/issues/16 but still struggling to find some free time to fully investigate and fix it.


RE: PyXBMCt - Roman_V_M - 2020-12-06

As it turned out, it is a Kodi bug that should be fixed in next versions: https://github.com/xbmc/xbmc/pull/18900


RE: PyXBMCt - lunamoon - 2020-12-08

(2020-12-06, 01:38)Roman_V_M Wrote: As it turned out, it is a Kodi bug that should be fixed in next versions: https://github.com/xbmc/xbmc/pull/18900

Thanks you very much, Roman !!!


RE: PyXBMCt - docwra - 2020-12-08

Yes thanks from me also, time to start writing new Add-ons Smile


This forum uses Lukasz Tkacz MyBB addons.