<html>
<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=windows-1255">
<meta name=Generator content="Microsoft Word 10 (filtered)">
<style>
<!--
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline;}
p.MsoAutoSig, li.MsoAutoSig, div.MsoAutoSig
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
p
        {margin-right:0cm;
        margin-left:0cm;
        font-size:12.0pt;
        font-family:"Times New Roman";}
span.EmailStyle17
        {font-family:Arial;
        color:windowtext;}
p.HTML1, li.HTML1, div.HTML1
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";}
@page Section1
        {size:612.0pt 792.0pt;
        margin:72.0pt 90.0pt 72.0pt 90.0pt;}
div.Section1
        {page:Section1;}
-->
</style>
</head>
<body lang=EN-US link=blue vlink=purple>
<div class=Section1>
<p class=HTML1><b><font size=2 color="#ff7700" face="Courier New"><span
lang=EN style='font-size:10.0pt;color:#FF7700;font-weight:bold'>Hello,</span></font></b></p>
<p class=HTML1><b><font size=2 color="#ff7700" face="Courier New"><span
lang=EN style='font-size:10.0pt;color:#FF7700;font-weight:bold'> </span></font></b></p>
<p class=HTML1><b><font size=2 color="#ff7700" face="Courier New"><span
lang=EN style='font-size:10.0pt;color:#FF7700;font-weight:bold'>I wrote the python
script below usind word editor.</span></font></b></p>
<p class=HTML1><b><font size=2 color="#ff7700" face="Courier New"><span
lang=EN style='font-size:10.0pt;color:#FF7700;font-weight:bold'>1. How can I run
it as a python script? It seems to be opened as a word document!</span></font></b></p>
<p class=HTML1><b><font size=2 color="#ff7700" face="Courier New"><span
lang=EN style='font-size:10.0pt;color:#FF7700;font-weight:bold'>2. Where do I find
the xbmc and xbmcgui libraries.</span></font></b></p>
<p class=HTML1><b><font size=2 color="#ff7700" face="Courier New"><span
lang=EN style='font-size:10.0pt;color:#FF7700;font-weight:bold'> </span></font></b></p>
<p class=HTML1><b><font size=2 color="#ff7700" face="Courier New"><span
lang=EN style='font-size:10.0pt;color:#FF7700;font-weight:bold'> </span></font></b></p>
<p class=HTML1><b><font size=2 color="#ff7700" face="Courier New"><span
lang=EN style='font-size:10.0pt;color:#FF7700;font-weight:bold'> </span></font></b></p>
<p class=HTML1><b><font size=2 color="#ff7700" face="Courier New"><span
lang=EN style='font-size:10.0pt;color:#FF7700;font-weight:bold'> </span></font></b></p>
<p class=HTML1><b><font size=2 color="#ff7700" face="Courier New"><span
lang=EN style='font-size:10.0pt;color:#FF7700;font-weight:bold'> </span></font></b></p>
<p class=HTML1><b><font size=2 color="#ff7700" face="Courier New"><span
lang=EN style='font-size:10.0pt;color:#FF7700;font-weight:bold'>import</span></font></b><span
lang=EN> xbmc, xbmcgui</span></p>
<p><font size=3 face="Times New Roman"><span lang=EN style='font-size:12.0pt'>#After
that we create a class including some functions (defined by def) </span></font></p>
<p class=HTML1><b><font size=2 color="#ff7700" face="Courier New"><span
lang=EN style='font-size:10.0pt;color:#FF7700;font-weight:bold'>class</span></font></b><span
lang=EN> MyClass<font color=black><span style='color:black'>(</span></font>xbmcgui.<font
color=black><span style='color:black'>Window)</span></font>:</span></p>
<p class=HTML1><font size=2 face="Courier New"><span lang=EN style='font-size:
10.0pt'> <b><font color="#ff7700"><span style='color:#FF7700;font-weight:bold'>print</span></font></b>
<font color=darkslateblue><span style='color:darkslateblue'>'hello world'</span></font></span></font></p>
<p><font size=3 face="Times New Roman"><span lang=EN style='font-size:12.0pt'>#So
after that we initialize the class object and doModal() allows to always
display the graphical window until we exit it. The del is here to have a #clean
code and delete the class instance. </span></font></p>
<p class=HTML1><font size=2 face="Courier New"><span lang=EN style='font-size:
10.0pt'>mydisplay = MyClass<font color=black><span style='color:black'>()</span></font></span></font></p>
<p class=HTML1><font size=2 face="Courier New"><span lang=EN style='font-size:
10.0pt'>mydisplay .<font color=black><span style='color:black'>doModal()</span></font></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'> </span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'> </span></font></p>
<p class=MsoAutoSig dir=RTL style='text-align:right;direction:rtl;unicode-bidi:
embed'><font size=3 face="Times New Roman"><span dir=LTR style='font-size:12.0pt'>Regards,
Eli Cohen</span></font></p>
<p class=MsoAutoSig dir=RTL style='text-align:right;direction:rtl;unicode-bidi:
embed'><font size=3 face="Times New Roman"><span lang=AR-SA style='font-size:
12.0pt'>בברכה, אלי כהן</span></font></p>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'> </span></font></p>
</div>
</body>
</html>