XBMC-Python Scripting Tutorial
The XBMC-Python Scripting Tutorial is an introductory set of lessons intended to
take a beginner with virtually no programming experience and introduce him to the
fundamental tools and concepts necessary to write basic Python scripts for use
with XBMC's Python port.
The steps contained in this lesson include an introduction to each of the basic
control objects (like Lists, Buttons, and Textboxes), as well as the interactive
Dialogs and some data-gathering functions. All of this information is presented
in a simple, progressive structure, with fully scripted examples at every step
of the way.
Download: Full Download
View Online: PDF Document (requires Adobe Acrobat Reader)
XBMC Online Manual
The XBMC Online Manual is a Wiki that covers all aspects of XBMC, from writing and
compiling the C libraries to developing third-party Add-Ons, to the end-user experience.
Obviously, for our purposes the main focus will be on third-party development.
Like all Wikis, the XBMC Online Manual is a living document, and we're always looking
for contributors to help maintain it. I'm an active editor myself, and if you're
interested in getting involved, contact me or anyone on Team XBMC to get edit rights.
Below I've linked some of the most useful reference pages in the Wiki. If you don't
know where to start, check out the Python Development page first.
View Online: Python Development
View Online: HTTP API
View Online: Built-In Functions
View Online: Database Reference
XBMC Python Modules Reference
The files
"xbmc.html,"
"xbmcgui.html," and
"xbmcplugin.html"
are automatically-generated documents (produced through a process called "makedoc"),
which reveal all of the member classes and functions of the three XBMC custom import
libraries (used by XBMC scripts).
The makedocs are generated by the XBMC developers and made available in the CVS.
I've decided to link them from here for the convenience of those scripters who aren't
participating in the development of the larger project (like me).
"xbmc" Makedoc:
The "xbmc" library offers classes and functions that provide information about the
media currently playing and that allow manipulation of the media player (such as
starting a new song). You can also find system information using the functions
available in this library. View the makedoc for more information.
"xbmcgui" Makedoc:
The file "xbmcgui.html" is another makedoc, documenting xbmc's companion library,
xbmcgui. The "xbmcgui" library offers classes and functions that manipulate the
Graphical User Interface through windows, dialogs, and varius control widgets. (The
members of xbmcgui are used heavily in the Tutorial.) View the makedoc for more
information.
"xbmcplugin" Makedoc:
The "xbmcplugin" library offers classes and functions that allow a developer to
present information through XBMC's standard menu structure. While plugins don't
have the same flexibility as scripts, they boast significantly quicker development
time and a more consistent user experience. View the makedoc for more information.
Download them all: RAR Archive
(Last updated March 9, 2009).
View Online: xbmc
View Online: xbmcgui
View Online: xbmcplugin