Solved xbmcgui.ControlSlider doesn't diplay
#1
Hello everybody,

I'm building an addon which include a small player control (play/pause, next, previous and seeking).
To display the position in the current file, I use a ControlProgress:

Code:
self.playerProgress = xbmcgui.ControlProgress(left, self.height-130, self.width-left-10, 50)
self.addControl(self.playerProgress)

It works prety well, but that one cannot be used to move into the file (no action are linked to it).

To add seeking control, I want to replace my progressbar by a slider, so I try:

Code:
self.playerProgress = xbmcgui.ControlSlider(left, self.height-130, self.width-left-10, 50)
self.addControl(self.playerProgress)

But when I do that, the slider is not displayed...

Do I forget something?

Thank you in advance.
Reply
#2
Hello again,

I try to use WindowXML instead of building by window in Python script. So I now have that code:

<control type="slider" id="307">
<posx>410</posx>
<posy>0</posy>
<width>1000</width>
<height>50</height>
<action>seek</action>
</control>

But I still have the same issue.
Reply
#3
Ok,

Finally I solved (avoid...) my problem:
I display a progressbar under the slider and everythink works fine !
Reply

Logout Mark Read Team Forum Stats Members Help
xbmcgui.ControlSlider doesn't diplay0