Hi, Ihsan.<div><br></div><div>Welcome to the list. I am not sure what you mean by programming without the &#39;&gt;&gt;&gt;&#39;s, but I have a feeling that you mean the Python interpreter is not associated with .py files. Once the association is created in the registry, you can launch .py files. I use WM5, but I think WM6.1 will probably let you do this too. To create the association in the registry you need to start the Python interpreter on your device, and yes you need to use the &#39;&gt;&gt;&gt;&#39;s, but only for these steps:</div>
<div><br></div><div><div>&gt;&gt;&gt; import _winreg as reg</div><div>&gt;&gt;&gt; k=reg.CreateKey(reg.HKEY_CLASSES_ROOT,&#39;.py&#39;)</div><div>&gt;&gt;&gt; reg.SetValueEx(k,&#39;Default&#39;,0,reg.REG_SZ,&#39;Python.File&#39;)</div>
<div>&gt;&gt;&gt; k=reg.CreateKey(reg.HKEY_CLASSES_ROOT,&#39;Python.File\\Shell\\Open\\Command&#39;)</div><div>&gt;&gt;&gt; reg.SetValueEx(k,&#39;Default&#39;,0,reg.REG_SZ,&#39;\&quot;\\Storage Card\\Program Files\\python.exe\&quot; \&quot;%1\&quot;&#39;)</div>
<div><br></div>DISCLAIMER: please be aware that modifying the registry can cause serious problems with your operating system. Do not undertake any changes unless you know and understand what you are doing!</div><div><br></div>
<div>The above lines of code may get broken through the email and/or mailing list, so check them carefully! Also remember the underscore for the &#39;_winreg&#39; module name, and look carefully at the string value you need to enter for the path to the Python.exe file - there are single AND double quotation marks.</div>
<div><br></div><div>When you have completed the above steps, you should be able to launch a simple .py file containing Python code without needing to open the interpreter first.</div><div><br></div><div>Note that I prefer to run my Python executable from an SD card, so the registry path begins with &#39;\\Storage Card\\Program Files\\...&#39;, but if your Python.exe is located on the main device, the value will probably simply begin &#39;\\Program Files\\...&#39;.</div>
<div><br></div><div>Alternatively, if you are able to establish an ActiveSync link with your computer and device, then you can download a registry editor to make the task easier (e.g. CERegEditor by MDSoft is one, but there are many).</div>
<div><br></div><div>Now, writing and editing .py files is another matter...</div><div><br></div><div>HTH</div><div><br></div><div>Adam</div><div><br><div class="gmail_quote">On 10 February 2011 16:23, Ihsan Cingisiz <span dir="ltr">&lt;<a href="mailto:ihsan_cingisiz@live.nl">ihsan_cingisiz@live.nl</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">



<div>
Hello,<div><br></div><div>I download PythonCE today because I love programming in Python, i&#39;m using it on</div><div>my computer and wanted to use it on my HTC Touch Pro with Windows Mobile 6.1.</div><div>It work, but only the &#39;IDLE&#39;, I mean this for example:</div>
<div>&gt;&gt;&gt; print &quot;Hello...&quot;</div><div><br></div><div>In Python PC Version you can do open a new window and program without the &gt;&gt;&gt;&#39;s.</div><div>Is that possible in PythonCE too? If it is, how do I open it?</div>
<div><br></div><div>Kind Regards,</div><div>I. Cingisiz.</div>                                               </div>
<br>_______________________________________________<br>
PythonCE mailing list<br>
<a href="mailto:PythonCE@python.org">PythonCE@python.org</a><br>
<a href="http://mail.python.org/mailman/listinfo/pythonce" target="_blank">http://mail.python.org/mailman/listinfo/pythonce</a><br>
<br></blockquote></div><br></div>