
tomas.hylander at gmail
Feb 13, 2010, 11:30 AM
Post #3 of 3
(1096 views)
Permalink
|
|
Re: running external programs from MythTv? and some more...
[In reply to]
|
|
I've been trying to get something to work but I guess I need some help. Not completely sure that it works, but what I want is to run a script from within MythTv. my button is defined in base.xml and looks like this; ----------------------------------------------------------------------------- <button name="status"> <position>40,220</position> <statetype name="buttonstate"> <state name="active"> <imagetype name="background"> <filename>ui/mc-status.png</filename> </imagetype> <textarea name="text"> <area>0,0,92,55</area> <align>allcenter</align> <font>menu_desc</font> <font state="selected">basemedium</font> <font state="disabled">basemediumgrey</font> </textarea> </state> <state name="selected" from="active" /> <state name="disabled" from="active" /> <state name="pushed" from="active"> <imagetype name="background"> <area>0,0,92,55</area> <filename>ui/mc-status1.png</filename> <alpha>180</alpha> </imagetype> <textarea name="text"> <position>8,8</position> </textarea> </state> </statetype> </button> -------------------------------------------------------------------------- I then call it from menu_ui.xml with a simple "<button name="TV-Status" from="status" />" But where do I use the "<Action>EXEC myscript.py</Action>" Or can I only use the types and actions listed on the link?? Thankful for anyhelp! /Tomas
|