romanvm / script.module.pyxbmct

A GUI micro-framework for Kodi meidacenter addons
46 stars 7 forks source link

[Request] Image control enhancements #23

Closed addon-rajada closed 8 months ago

addon-rajada commented 8 months ago

Hi, I just found this library and thought this is amazing. I'm quite new at GUI development, after some doc reading i was capable to do a simple GUI for a comic/manga viewer i've been working:

Screenshot

The problem is, when image scaled up we can't move up/down to read entire page:

Screenshot

Would be possible to:

romanvm commented 8 months ago

PyXBMCt is just a thin convenience wrapper around Kodi Python API. So its capabilities are limited by those of Kodi. And your feature request cannot be implemented without modifying Kodi itself. So I'm closing this issue because there's nothing I can do with it.

addon-rajada commented 8 months ago

Ok, i understand your point.

Just for knowledge, i was able to make it work using PIL to split the images in 3 parts and a tricky ControlImage object replacement: photo

Portrait mode was also made by using PIL rotate method.

I tried to use Kodi rotate/zoom animations but it won't keep it's state after some object replacement, even for the Visible, VisibleChange and Focus triggers (IDK why)

It's sad there is such limitations for dynamic controls.

Anyway, many thanks for the Addon!