creating buttons
#1
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
Livingroom: MacMini Mid summer 2010 4Gb RAM HDMI to Pioneer PDP-434 Plasma 1080i
Kitchen: one xbox 1.1 executer 2.3 chip 120 GB in HD 720p mode
Bedroom: Computer Intel Quad 9400, 8 GB RAM, NVIDIA GTX260, Vista Ultimate 64, Ubuntu 10.10
Reply
#2
take a look at the documentation file, above this site you can download a tutorial.
http://www.gueux.net/xbmc-scripts/index.html
greets,

zilvershadow
designer of the kmlbrowser script.
Reply
#3
(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...
Reply
#4
thanks i got it working.

i currently working on a tvscript for sweden
Livingroom: MacMini Mid summer 2010 4Gb RAM HDMI to Pioneer PDP-434 Plasma 1080i
Kitchen: one xbox 1.1 executer 2.3 chip 120 GB in HD 720p mode
Bedroom: Computer Intel Quad 9400, 8 GB RAM, NVIDIA GTX260, Vista Ultimate 64, Ubuntu 10.10
Reply

Logout Mark Read Team Forum Stats Members Help
creating buttons0