•   
  • 1
  • 21
  • 22
  • 23(current)
  • 24
  • 25
  •   
Release PyXBMCt: a Python framework for simple creating UI for XBMC addons
@toall1985 Unfortunately, in Kodi there is no equivalent of TextArea control. Also, please use forum features to properly format your code.

@bpak There is no working group control. You have to create the one yourself. Dynamic content is possible: you need to capture navigation events (key presses and mouse movement) and check which control is currently selected, and then show your content depending on it. See how a dynamic text label is implemented in PyXBMCt demo addon: https://github.com/romanvm/pyxbmct.demo/...y#L97-L103 https://github.com/romanvm/pyxbmct.demo/...#L160-L168
Your task is more complex but it should be doable. Note, that Kodi UI Controls have setVisible() method that allow show and hide them when necessary.
Reply
Thanks for your quick reply!
I'll try this way so
Reply
hi,
first of all THANKS great addon makes life a lot easier ,
is there any way to make the text RTL (right to left) in the textbox?
thanks a gain.
Reply
@Ebs_1 Not that I know of: http://romanvm.github.io/Kodistubs/_auto...rolTextBox
Reply
Hi,

I have 3 questions (for now Wink ):
1. How can I preserve picture ratio on display ?
2. Is there a way to play audio in background ?
3. Can we display a video too ?

Thanks.

Yann
Reply
@yannbrrd 

1. ControlImage has aspectRatio parameter: http://romanvm.github.io/Kodistubs/_auto...ntrolImage
2, 3 - Not sure what this has to do with PyXBMCt. It's a library for creating relatively simple UIs for addons, nothing more.
Reply
Hey,

Thanks for reply.

1. OK
2. Found an answer using Player.play
3. Was to know if I could play a video in a pyxbmct window, as I can do with pics. But found another way.

Smile
Reply
Hey Roman, Is it possible to synchronize the scrolling between two lists so that when one list is scrolled the other list is scrolled too? Cheers
Reply
xbmcgui.ControlList does not have methods for programmatic scrolling, so the answer is no.
Reply
Bummer. Thanks.
Reply
Hey Roman. Is there a way to retrieve the label of a radio button? My current solution is creating a list containing the button and a string of the label.
Reply
Strangely enough ControlRadioButton has no method for getting label value.
Reply
(2019-05-06, 05:27)Roman_V_M Wrote: Strangely enough ControlRadioButton has no method for getting label value.

Yep. Oh well. My workaround will have to do then.
Reply
Thanks for this addon! I'm working on my first Kodi add-on and this is invaluable to making a more advanced UI.

I'm trying to make a window that looks very much like the existing built-in Dialog.multiselect but want an additional text area and text edit field above it. 

I have a ControlList in my Dialog populated with items. It behaves fine (so far), but has no scroll bar. I've looked through the docs but can't find what I'm after, maybe I'm not using the right terminology. 

In my case its really about usability, since the list items just don't look scrollable.

Any advice?

Many thanks

Kris
Hue Service  Git • Repo
Reply
Unfortunately, ControlList doesn't have a scrollbar.
Reply
  •   
  • 1
  • 21
  • 22
  • 23(current)
  • 24
  • 25
  •   



Logout Mark Read Team Forum Stats Members Help
PyXBMCt: a Python framework for simple creating UI for XBMC addons4
This forum uses Lukasz Tkacz MyBB addons.