Need help in where to start on making an xbmc widget
#1
I made a program and I want it to interact with xbmc using a widget.

The problem is, I didn't found any documentations on how to write a widget


any tip on where to start and important stuff I should know?
Maybe someone got a tutorial of some sort?


Thanks
Thatkookooguy
Reply
#2
You just provide the information in the form of setting arbitrary "properties" on the home window. It's up to the skin to use and display that info, widget or not
Reply
#3
Sorry but I didn't understand anything you wrote :-)

"setting arbitrary "properties" on the home window"?

Can you please explain in more details?

Can I display the content of a .txt file (for example) using what you said in a widget when my focus is on "TV Shows"?

thanks
Thatkookooguy
Reply
#4
What I mean is, you call the window.setProperty() method which makes the information available to the skin. From there, it's up to the skin to display that information
Code:
win.setProperty('ACallToArms', 'Now is the time for all good men to come to the aid of their country')

Then, the skin retrieves the info using getProperty()
Code:
text = win.getProperty('ACallToArms')
print text

If you want to show something like that, you need to look into how the skinning system works and start editing your skin of choice
Reply
#5
Can the setProperty be a call to an addon/plugin for example?
Reply
#6
No, set property just takes two strings, a key and a value. A service can call a plugin or script if needed
Reply

Logout Mark Read Team Forum Stats Members Help
Need help in where to start on making an xbmc widget0