PDA

View Full Version : creating buttons


nianhbg
2004-04-24, 22:47
hello can i create a image button in pyhton. i can't get my code to work


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


no image are showing

zilvershadow
2004-04-25, 01:51
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, 06:59
hello can i create a image button in pyhton. i can't get my code to work


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, 14:38
thanks i got it working.

i currently working on a tvscript for sweden