Kodi Community Forum

Full Version: PyXBMCt
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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
Python 3 compatible version is almost ready, and I'll publish it soon.
(2018-02-12, 18:50)Roman_V_M Wrote: [ -> ]Python 3 compatible version is almost ready, and I'll publish it soon.
Thanks!
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.
Just wanted to say thanks for this, I've been testing a few things and it works great!
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.
I know about the issue: https://github.com/romanvm/script.module.../issues/16 but still struggling to find some free time to fully investigate and fix it.
As it turned out, it is a Kodi bug that should be fixed in next versions: https://github.com/xbmc/xbmc/pull/18900
(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 !!!
Yes thanks from me also, time to start writing new Add-ons Smile