Kodi Community Forum
creating buttons - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32)
+--- Forum: Add-ons (https://forum.kodi.tv/forumdisplay.php?fid=26)
+--- Thread: creating buttons (/showthread.php?tid=3043)



- nianhbg - 2004-04-24

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


- zilvershadow - 2004-04-25

take a look at the documentation file, above this site you can download a tutorial.
http://www.gueux.net/xbmc-scripts/index.html


- madtw - 2004-04-25

(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...


- nianhbg - 2004-04-25

thanks i got it working.

i currently working on a tvscript for sweden