Kodi Community Forum

Full Version: creating buttons
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
hello can i create a image button in pyhton. i can't get my code to work

Quote:self.cmbutton = xbmcgui.controlbutton(50, 200, 32, 32,'','q:\\scripts\\images.png','')
self.addcontrol(self.cmbutton)

no image are showing
take a look at the documentation file, above this site you can download a tutorial.
http://www.gueux.net/xbmc-scripts/index.html
(nianhbg @ april 24 2004,13:47 Wrote:hello can i create a image button in pyhton. i can't get my code to work

Quote:self.cmbutton = xbmcgui.controlbutton(50, 200, 32, 32,'','q:\\scripts\\images.png','')
self.addcontrol(self.cmbutton)

no image are showing
you need to create a window first and then add the control to the window...
thanks i got it working.

i currently working on a tvscript for sweden