2013-10-28, 19:49
Sounds great. Thanks for the detailed info. I'll experiment a bit and see what I come up it. I don't need to manually close the window so show() should be ok.
label.setAnimations([('visible', 'effect=fade start=0 end=100 time=2000',)])
(2013-10-31, 20:55)hpooni Wrote: I'm trying to perform animations on the pop using setAnimations something like below:
But I'm not seeing any results fade results. Is this possible to do?PHP Code:label.setAnimations([('visible', 'effect=fade start=0 end=100 time=2000',)])
Ideally I would just like to add single slide in/out effect to the entire popup (something like the built-in notification) but not sure if that's possible.
Thanks for your help.
label = Label('Your label text')
window.placeControl(label, 0, 0)
label.setAnimations([('WindowOpen', 'effect=fade start=0 end=100 time=2000',), ('WindowClose', 'effect=fade start=100 end=0 time=2000',)])
(2013-11-05, 07:07)oki_eng Wrote: I can set new textbox with self.texbox.setText()
How can i set new thumbnail image to imagebox?
Thanks
Oki
pilight-control -l livingroom -d bookshelve -s on
from subprocess import call
call(["pilight-control", "-l livingroom", "-d bookshelve", "-s on"])
from subprocess import call
call(["pilight-control", "-l", "livingroom", "-d", "bookshelve", "-s", "on"])
self.connect(button, xbmc.PlayMedia(asset['path']))
(2014-03-17, 00:51)nickr Wrote: I think the way to do this in python is to call the external command like this:
Code:from subprocess import call
call(["pilight-control", "-l livingroom", "-d bookshelve", "-s on"])
Although I am a little hazy on quite how the quoting (") should look. It might be
Code:from subprocess import call
call(["pilight-control", "-l", "livingroom", "-d", "bookshelve", "-s", "on"])
There is also a commonly used, but maybe deprecated, os.system call.
I am interested in this, you could perhaps make the calls user definable (via a setting) then I could use your addon to control my Philips Hue lights.
Also it'd be good to map some lighting functions to a remote button, no point in having to actually call the addon up to the screen just to flick a light on/off.
(I have the hue addon which dims the lights on movies playing and turns them on when paused/stop, but sometimes it'd just be nice to turn them up, eg if eating dinner watching TV it'd be nice to see the plate!)
EDIT I should acknowledge my source and say that there is plenty of reading on this page:
http://stackoverflow.com/questions/89228...-in-python
(2014-03-17, 13:42)phr3n1c Wrote: Hi,
I'm currently using XBCMSwift2 for the basic UI and want to use PyXBMCt for additional windows like modals, notifications and so on.
For testing, I used the code of the example in your first post in this thread but changed the button to start playing the url (mp4):
Code:self.connect(button, xbmc.PlayMedia(asset['path']))
But as soon as the window is shown, the video starts playing. Is there a way to prevent the automatic start?
Thank you!
(2014-03-17, 14:39)Aweponken Wrote: So the problem is, how do I execute python code in a PHP based plugin?