[mythtv] Python and MythTV?

hendrixski at storsint.com hendrixski at storsint.com
Tue Feb 5 16:42:46 UTC 2008


> Hi
>
> We would like to build a pluggin to MythTV that can get/send data (text
> and
> possibly some pictures) to another GNU Linux command line application. But
> here comes the deal; we only know how to program in Python and I wonder if
> it is possible to create what I want to do with that?
>
> We already know how to interact with our command line app, but, we would
> like to have some guidance towards connecting the command line app to
> MythTv. Basically we want to search a web site, and then return the text
> back to MythTv in a simplified format.
>
> Does anyone have any examples on how to do this? I cant find anything on
> the
> net about it.
>
> Sincerely yours


You mean like QProcess? Qt's way of launching a process from your code and
being able to communicate with it. Mythmusic uses it in globalsettings.cpp

Also. You can easily make python bindings of mythtv libraries using SWIG
or SIP (SIP was created specifically for binding python to Qt... it's used
in KDE's python bindings... but it's kind of hard to use).  This way you
can access mythtv features from your python code. :-)

There is a mythpython plugin out there... I keep meaning to tinker with it
myself, so if you're going to put work into it maybe we can collaborate. 
I have it on my box now, and I use it to grab Apple TV trailers. Though, I
don't think there's an SVN repository for it... or git, bzr, mercurial,
branch for that matter.  Soo... whatever you guys do, post your work on a
branch and people like me just might help you out :-)



More information about the mythtv-dev mailing list