Posts: 508
Joined: Sep 2003
Reputation:
0
darkie, thx for the explanation.
i still think python in xbmc has a lot of potential
especially when its able to access xbmc stuff like dialogs,windows etc.
things i would like 2 see for python:
1. bind a button control to a script.
so pressing a button will run a script
2. python scripts should b able to use the controls like:
- cguiimage to display an image
- list control
- text area
- button
- spincontrol
3. mapping of keys -> python
with these 3 things one should b able to build almost anything in pyton
frodo
XBMC Project Founder (Retired), now head programmer of
MediaPortal
Posts: 199
Joined: Oct 2003
Reputation:
0
i just tested out a python script in xbmc that i wrote to delete a show from a networked tivo, and it worked great. it should be quite easy to add a lot of extra functionality to xbmc using python.
darkie, how exactly do you use the 4 dialogs that you've added so far? i can't find any example scripts or documentation.
thanks,
burriko.
Posts: 529
Joined: Sep 2003
Reputation:
0
darkie
Team-Kodi Member
Posts: 529
it isn't in cvs yet, still expirimenting a lot with it.
i'll add it to cvs in lets say 2 day's, with some sample scripts.
Posts: 199
Joined: Oct 2003
Reputation:
0
darkie, i've just been playing around with the stuff that you've added to cvs so far. and it's awesome! i already have some of my scripts running on xbmc to control tivo using the list and ok dialogs.
python is going to add so much functionality to xbmc!
btw, i'm sure you know this already, but when any script finishes running it crashes xbmc (this is compiled from anonymous cvs about an hour ago).
Posts: 529
Joined: Sep 2003
Reputation:
0
darkie
Team-Kodi Member
Posts: 529
wel i did fix a bug related to the crashing, but a fix for it is in cvs now for 2 days. maybe anon cvs is very long behind.
Posts: 529
Joined: Sep 2003
Reputation:
0
darkie
Team-Kodi Member
Posts: 529
you can stop checking the cvs, it was indeed a bug and should be fixed now :d
Posts: 9
Joined: Oct 2003
Reputation:
0
it'will be a nice feature when xbmc start's it runs some file automatictly, like startup.py and when xbmc quit's a separate file.
so i can program a python scripts that saves the state of the played file and when it starts up it continues where it finished, like
car cd players.
Posts: 68
Joined: Nov 2003
Reputation:
0
are there any links to documentation on how to use python with xbmc?
i am looking to write some code in python to connect to my replaytv and delete and possibly stream shows straight from the replay.
thanks,
cp