Adding and Removing Controls in an XML-Window

  Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
MichaelE1000 Offline
Junior Member
Posts: 3
Joined: Sep 2011
Reputation: 0
Post: #1
Hi,

I just wanted to ask if this is possible or why it doesn't work in my code.

I currently want to add images with the following code:

Code:
self.addControl(xbmcgui.ControlImage(0, 0, 50, 50, 'grey.png'))

But it won't show in the UI. I saw that other people derive their UI-classes from xmbcgui.Window but I wanted to make the basic stuff themeable except for the dynamic parts.

Is this really not possible or did I wrote invalid code?

The addon is hosted here:
https://github.com/MichaelE1000/xbmc-addon-vdrcutter
It does only work with the nighlty builds as it requires the newer python framework.

Btw: I just thought about if it's possible to pass a streamclass to the video player? (It would solve a problem which I have when I want more then one video file to be handled like it is a single one. (VDR Recordings are often splitted into more than one file.))

Nice regards

Michael
find quote
MichaelE1000 Offline
Junior Member
Posts: 3
Joined: Sep 2011
Reputation: 0
Post: #2
Isn't there someone who has an idea for my problem or is the only solution really to implement the whole window in Python-Code which doesn't allow themes?

Thank's in advance
Mike
find quote