Put item XBMC Home menu
#1
Hi,
How can i put xbmc home menu item like image, labelbox e.t.c. via addons.

Normally with script addons i can create new window and put whatever i need. But not to home screen.?
Any idea?

Thanks

Oki
Reply
#2
By providing a window ID to xbmcgui.Window class you can attach a control to an existing window.
E.g. the following code:
PHP Code:
import xbmcgui

window 
xbmcgui.Window(10000)
time_label xbmcgui.ControlLabel(12005010050'$INFO[System.Time]',
                                            
font='font24_title'textColor='0xFFFFFF00')
window.addControl(time_label
will create a yellow clock label on the home screen. In Confluence skin it will be just below skin's own clock.
It may not work in all skins, if a skin puts its own control, e.g. an image, on top of your control.
Reply
#3
Thanks, awesome
Reply
#4
Hi , Here is another question.
I setup cron run every single minute this code , Things is every minute clock is over written at same position. maybe i can clear label first then put new clock ?

How can remove existing label.?
I tired window.removeControl(time_label) but tis is not working.

Thanks
Reply

Logout Mark Read Team Forum Stats Members Help
Put item XBMC Home menu0