[PythonCE] PythonCE Digest, Vol 38, Issue 13

David P. Gil davidpgil at gmail.com
Wed Sep 27 20:41:11 CEST 2006


Bandung, interesting stuff. I will have to try it! I want to code on my
phone so I can practice my programming during my train rides. Maybe it
sounds like something a person would not want to do, i feel like its my only
opportunity to really try and get better at programming since all I do is
art at work all day. Many thanks!

On 9/27/06, pythonce-request at python.org <pythonce-request at python.org> wrote:
>
> Send PythonCE mailing list submissions to
>         pythonce at python.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
>         http://mail.python.org/mailman/listinfo/pythonce
> or, via email, send a message with subject or body 'help' to
>         pythonce-request at python.org
>
> You can reach the person managing the list at
>         pythonce-owner at python.org
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of PythonCE digest..."
>
>
> Today's Topics:
>
>    1. Re: wxPython for PythonCE announcement (Bandung)
>    2. Re: wxPython for PythonCE announcement (Bandung)
>    3. Re: Trying to Code Python ON a Pocket PC Phone (Bandung)
>    4. Re: Trying to Code Python ON a Pocket PC Phone (Bandung)
>    5. Re: Trying to Code Python ON a Pocket PC Phone (Bandung)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Tue, 26 Sep 2006 07:32:40 -0700 (PDT)
> From: Bandung <bandung at skyesystems.com>
> Subject: Re: [PythonCE] wxPython for PythonCE announcement
> To: pythonce at python.org
> Message-ID: <6508125.post at talk.nabble.com>
> Content-Type: text/plain; charset=us-ascii
>
>
> I don't think that the problem has anything to do with the machine being
> "out
> of memory".
>
> I think the problem lies with the default paths that seemed to be hard
> wired
> into the binary packages.  For example, the error message refers to line 4
> within the _misc.py file within a directory tree that commences with \CF
> Card\Program Files\Python24\lib\wx\_.misc.py   and so on.  Well I don't
> have
> a CF Card on my pda.
>
> I then placed my Python24 installation along with all of the wx files
> within
> the main storage area rather than on my mini SD card.  So now wxpythonce
> should be found under \Program Files\Python24\lib\wx rather than \Storage
> Card\Program Files\Python24\lib\wx.
>
> Guess what,  even though Python launches from its new home, wxPythonce
> still
> thinks everything is under \CF Card\Program Files\Python24\lib\wx
>
> Apart from recompiling everything, there doesn't seem to be any way to
> change this behaviour since all of the python wrappers within the binary
> distribution are *.pyc files rather than *.py
>
> My guess is that those of us who do not have a "CF Card" storage
> designation
> on our pda's are "sol" on this release.  I would love to be able to
> recompile this on my own in order to test this theory but not being a
> "computer man" I have not been able to compile anything that is windoz
> related.  But point me to a "make" file on a linux machine and with deep
> gratitude to the maintainers of Linux relkated programs, I'm in my
> element.
>
> If someone could walk me through it, I have a Visual Studio 2005 Standard
> installation along with the windows movile 5.0 sdk package on my windoze
> machine.  Perhaps we can resolve this mis behaviour.
>
>
>
> George-64 wrote:
> >
> > jeffbarish wrote:
> >> Did you ever resolve this issue?  When I installed wxPython on a first
> >> PDA,
> >> it worked fine right away.  However, I just installed it on a second
> one
> >> of
> >> the exact same model (Dell Axim X51v) with the exact same memory
> >> complement
> >> and have encountered the same problem you reported.
> >
> > I'm also getting the same problem running on a hw6915 with running
> > Windows Mobile 5 and with about 25 megs free.
> >
> > http://mail.python.org/pipermail/pythonce/2005-July/001100.html
> >
> > is about all I could find on the what's going on.
> >
> > George
> > _______________________________________________
> > PythonCE mailing list
> > PythonCE at python.org
> > http://mail.python.org/mailman/listinfo/pythonce
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/wxPython-for-PythonCE-announcement-tf2024801.html#a6508125
> Sent from the Python - pythonce mailing list archive at Nabble.com.
>
>
>
> ------------------------------
>
> Message: 2
> Date: Tue, 26 Sep 2006 07:32:40 -0700 (PDT)
> From: Bandung <bandung at skyesystems.com>
> Subject: Re: [PythonCE] wxPython for PythonCE announcement
> To: pythonce at python.org
> Message-ID: <6508125.post at talk.nabble.com>
> Content-Type: text/plain; charset=us-ascii
>
>
> I don't think that the problem has anything to do with the machine being
> "out
> of memory".
>
> I think the problem lies with the default paths that seemed to be hard
> wired
> into the binary packages.  For example, the error message refers to line 4
> within the _misc.py file within a directory tree that commences with \CF
> Card\Program Files\Python24\lib\wx\_.misc.py   and so on.  Well I don't
> have
> a CF Card on my pda.
>
> I then placed my Python24 installation along with all of the wx files
> within
> the main storage area rather than on my mini SD card.  So now wxpythonce
> should be found under \Program Files\Python24\lib\wx rather than \Storage
> Card\Program Files\Python24\lib\wx.
>
> Guess what,  even though Python launches from its new home, wxPythonce
> still
> thinks everything is under \CF Card\Program Files\Python24\lib\wx
>
> Apart from recompiling everything, there doesn't seem to be any way to
> change this behaviour since all of the python wrappers within the binary
> distribution are *.pyc files rather than *.py
>
> My guess is that those of us who do not have a "CF Card" storage
> designation
> on our pda's are "sol" on this release.  I would love to be able to
> recompile this on my own in order to test this theory but not being a
> "computer man" I have not been able to compile anything that is windoz
> related.  But point me to a "make" file on a linux machine and with deep
> gratitude to the maintainers of Linux related programs, I'm in my element.
>
> If someone could walk me through it, I have a Visual Studio 2005 Standard
> installation along with the windows movile 5.0 sdk package on my windoze
> machine.  Perhaps we can resolve this mis behaviour.
>
>
>
> George-64 wrote:
> >
> > jeffbarish wrote:
> >> Did you ever resolve this issue?  When I installed wxPython on a first
> >> PDA,
> >> it worked fine right away.  However, I just installed it on a second
> one
> >> of
> >> the exact same model (Dell Axim X51v) with the exact same memory
> >> complement
> >> and have encountered the same problem you reported.
> >
> > I'm also getting the same problem running on a hw6915 with running
> > Windows Mobile 5 and with about 25 megs free.
> >
> > http://mail.python.org/pipermail/pythonce/2005-July/001100.html
> >
> > is about all I could find on the what's going on.
> >
> > George
> > _______________________________________________
> > PythonCE mailing list
> > PythonCE at python.org
> > http://mail.python.org/mailman/listinfo/pythonce
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/wxPython-for-PythonCE-announcement-tf2024801.html#a6508125
> Sent from the Python - pythonce mailing list archive at Nabble.com.
>
>
>
> ------------------------------
>
> Message: 3
> Date: Tue, 26 Sep 2006 08:00:06 -0700 (PDT)
> From: Bandung <bandung at skyesystems.com>
> Subject: Re: [PythonCE] Trying to Code Python ON a Pocket PC Phone
> To: pythonce at python.org
> Message-ID: <6508667.post at talk.nabble.com>
> Content-Type: text/plain; charset=us-ascii
>
>
> The only way that I know how to "edit" a *.py file rather than execute it
> is
> to change the registry entry that *.py point to in your
> registry.  Normally
> .py calls the "pyfile"  entry and it is within pyfile where  one types the
> command to launch python24.exe.   I simply point *.py to my Vim Open Start
> command which is within the registry entry "vimfile" and Vim launches
> instead.  If you use "idle" as your editor, I suppose you could get it to
> do
> the same thing.  If you are not familiar with modifying your registry to
> do
> this, don't worry.  There are utilities that can do this for you.
>
> Now by doing this, you realize that you can no longer execute *.py files
> when you double click on them  if you have a windows mobile 5.0 device.
> Since there is no console for Windows mobile 5.0, there is no way to
> launch
> a *.py without double clicking on it.  If you have a windows mobile 2003,
> then you can download a console programme that will permit you to launch
> your *.py files  from a dos like command line.
>
> So why do this personally?  Well its only when I am doing a lot of
> editiing
> and I get weary of launching Vim and then opening up the appropriate *.py
> file.  Without this trick, its a lot of keystrokes to open up a *.py file
> via Vim because Vim always starts its file open search in the default
> directory within main storage and all of my files are buried deep down a
> directory tree on my Storage Card.
>
> I can shell out of Vim on my desktop to run programmes that I am editing
> within Vim without exiting Vim.  I haven't tried that on my pda because
> windows mobile 5.0 doesn't have a console so I naturally assume that I'm
> screwed.  Because in most cases, I am screwed on Windows Mobile 5.0  I
> can't
> get things like OpenSSH working because this version of mobile windoze
> lacks
> this console.  Plus there are many other terrible side effects to this
> missing console feature such as not having any raw_inout" capabilities
> from
> my python24ce interpreter.
>
> Sigh ....
>
>
> David P. Gil wrote:
> >
> > I copied some files for a basic Python project im working onto my PDA
> > Phone
> > to work on and install PythonCE on it. In a previous reply, someone told
> > me
> > to just double tap my python files and it should allow me to edit them.
> > Apparently when I do this, the script is run instead. I don't want to
> use
> > interactive mode I want the script mode so I can write and edit bigger
> > python programs. Does anyone know how I can do this?
> >
> > Sorry if this seems like too basic of a question. Have sympathy, I am an
> > artist working in the game industry taking interest in the wacky work of
> > programming. Thanks in advance for any help you can provide.
> >
> > _______________________________________________
> > PythonCE mailing list
> > PythonCE at python.org
> > http://mail.python.org/mailman/listinfo/pythonce
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/Trying-to-Code-Python-ON-a-Pocket-PC-Phone-tf2293883.html#a6508667
> Sent from the Python - pythonce mailing list archive at Nabble.com.
>
>
>
> ------------------------------
>
> Message: 4
> Date: Tue, 26 Sep 2006 08:00:06 -0700 (PDT)
> From: Bandung <bandung at skyesystems.com>
> Subject: Re: [PythonCE] Trying to Code Python ON a Pocket PC Phone
> To: pythonce at python.org
> Message-ID: <6508667.post at talk.nabble.com>
> Content-Type: text/plain; charset=us-ascii
>
>
> The only way that I know how to "edit" a *.py file rather than execute it
> is
> to change the registry entry that *.py points to in your
> registry.  Normally
> .py calls the "pyfile"  entry and it is within pyfile where  one types the
> command to launch python24.exe.   I simply point *.py to my Vim Open Start
> command which is within the registry entry "vimfile" and Vim launches
> instead.  If you use "idle" as your editor, I suppose you could get it to
> do
> the same thing.  If you are not familiar with modifying your registry to
> do
> this, don't worry.  There are utilities that can do this for you.
>
> Now by doing this, you realize that you can no longer execute *.py files
> when you double click on them  if you have a windows mobile 5.0 device.
> Since there is no console for Windows mobile 5.0, there is no way to
> launch
> a *.py without double clicking on it.  If you have a windows mobile 2003,
> then you can download a console programme that will permit you to launch
> your *.py files  from a dos like command line.
>
> So why do this personally?  Well its only when I am doing a lot of
> editiing
> and I get weary of launching Vim and then opening up the appropriate *.py
> file.  Without this trick, its a lot of keystrokes to open up a *.py file
> via Vim because Vim always starts its file open search in the default
> directory within main storage and all of my files are buried deep down a
> directory tree on my Storage Card.
>
> I can shell out of Vim on my desktop to run programmes that I am editing
> within Vim without exiting Vim.  I haven't tried that on my pda because
> windows mobile 5.0 doesn't have a console so I naturally assume that I'm
> screwed.  Because in most cases, I am screwed on Windows Mobile 5.0  I
> can't
> get things like OpenSSH working because this version of mobile windoze
> lacks
> this console.  Plus there are many other terrible side effects to this
> missing console feature such as not having any raw_inout" capabilities
> from
> my python24ce interpreter.
>
> Sigh ....
>
>
> David P. Gil wrote:
> >
> > I copied some files for a basic Python project im working onto my PDA
> > Phone
> > to work on and install PythonCE on it. In a previous reply, someone told
> > me
> > to just double tap my python files and it should allow me to edit them.
> > Apparently when I do this, the script is run instead. I don't want to
> use
> > interactive mode I want the script mode so I can write and edit bigger
> > python programs. Does anyone know how I can do this?
> >
> > Sorry if this seems like too basic of a question. Have sympathy, I am an
> > artist working in the game industry taking interest in the wacky work of
> > programming. Thanks in advance for any help you can provide.
> >
> > _______________________________________________
> > PythonCE mailing list
> > PythonCE at python.org
> > http://mail.python.org/mailman/listinfo/pythonce
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/Trying-to-Code-Python-ON-a-Pocket-PC-Phone-tf2293883.html#a6508667
> Sent from the Python - pythonce mailing list archive at Nabble.com.
>
>
>
> ------------------------------
>
> Message: 5
> Date: Tue, 26 Sep 2006 11:35:54 -0700 (PDT)
> From: Bandung <bandung at skyesystems.com>
> Subject: Re: [PythonCE] Trying to Code Python ON a Pocket PC Phone
> To: pythonce at python.org
> Message-ID: <6512966.post at talk.nabble.com>
> Content-Type: text/plain; charset=us-ascii
>
>
> I've come across a nice little plugin for Vim that permits me to
> run/execute
> a python script from within Vim.  It works like a charm on my Windows
> desktop as well as Linux desktop.  Its called
> http://www.petersblog.org/node/461 runscript.vim   The script makes use of
> function keys F9, F11 and F12.  The lack of these hardware keys on my pda
> doesn't bother me since I can substitue other key combinations using the
> appropriate entries within my _vimrc file.  What's nice about this plugin
> is
> that it will even launch my python scripts that have gui interfaces. The
> trick is to get it working on my pda.
>
> What is also potentially nice about this plugin is that if I can get it
> working, I can use Vim as a sort of windows mobile 5.0 console.  Then I
> can
> edit files within Vim and by typing :!start python %s .... as an example,
> get that script to run on my pda.  Being ever suspicious of mobile
> windoze,
> before transferring this script to my pda, I wanted to see if I could
> launch
> programs from within Vim using the :!start command.
>
> Much to my surprise, I can launch embedded mobile apps such as Word (aka
> pword).  I just type :!start pword and by gosh, up pops pocket word.  I
> haven't been able to get python.exe to launch since it is located inside
> my
> Storage Card and the :!start command just doesn't see that directory.   I
> wish there was a "path" equivalent for Windows mobile so that I could put
> \Storage Card\Program Files\Python24 in the path statement and just type
> :!start python.exe
>
> Anyways, I will keep plugging away at this.  I found another script that
> will permit me to put breakpoints within the python code being edited
> within
> Vim so that I can debug it.  The plugin calls python's built in debugger
> and
> executes the script being edited by Vim within this debugger.  I don't
> know
> yet whether or not this debugger is part of the pythonce build.
>
>
>
>
>
> Bandung wrote:
> >
> > The only way that I know how to "edit" a *.py file rather than execute
> it
> > is to change the registry entry that *.py points to in your registry.
> > Normally .py calls the "pyfile"  entry and it is within pyfile
> where  one
> > types the command to launch python24.exe.   I simply point *.py to my
> Vim
> > Open Start command which is within the registry entry "vimfile" and Vim
> > launches instead.  If you use "idle" as your editor, I suppose you could
> > get it to do the same thing.  If you are not familiar with modifying
> your
> > registry to do this, don't worry.  There are utilities that can do this
> > for you.
> >
> > Now by doing this, you realize that you can no longer execute *.py files
> > when you double click on them  if you have a windows mobile 5.0 device.
> > Since there is no console for Windows mobile 5.0, there is no way to
> > launch a *.py without double clicking on it.  If you have a windows
> mobile
> > 2003, then you can download a console programme that will permit you to
> > launch your *.py files  from a dos like command line.
> >
> > So why do this personally?  Well its only when I am doing a lot of
> > editiing and I get weary of launching Vim and then opening up the
> > appropriate *.py file.  Without this trick, its a lot of keystrokes to
> > open up a *.py file via Vim because Vim always starts its file open
> search
> > in the default directory within main storage and all of my files are
> > buried deep down a directory tree on my Storage Card.
> >
> > I can shell out of Vim on my desktop to run programmes that I am editing
> > within Vim without exiting Vim.  I haven't tried that on my pda because
> > windows mobile 5.0 doesn't have a console so I naturally assume that I'm
> > screwed.  Because in most cases, I am screwed on Windows Mobile 5.0  I
> > can't get things like OpenSSH working because this version of mobile
> > windoze lacks this console.  Plus there are many other terrible side
> > effects to this missing console feature such as not having any
> raw_inout"
> > capabilities from my python24ce interpreter.
> >
> > Sigh ....
> >
> >
> > David P. Gil wrote:
> >>
> >> I copied some files for a basic Python project im working onto my PDA
> >> Phone
> >> to work on and install PythonCE on it. In a previous reply, someone
> told
> >> me
> >> to just double tap my python files and it should allow me to edit them.
> >> Apparently when I do this, the script is run instead. I don't want to
> use
> >> interactive mode I want the script mode so I can write and edit bigger
> >> python programs. Does anyone know how I can do this?
> >>
> >> Sorry if this seems like too basic of a question. Have sympathy, I am
> an
> >> artist working in the game industry taking interest in the wacky work
> of
> >> programming. Thanks in advance for any help you can provide.
> >>
> >> _______________________________________________
> >> PythonCE mailing list
> >> PythonCE at python.org
> >> http://mail.python.org/mailman/listinfo/pythonce
> >>
> >>
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/Trying-to-Code-Python-ON-a-Pocket-PC-Phone-tf2293883.html#a6512966
> Sent from the Python - pythonce mailing list archive at Nabble.com.
>
>
>
> ------------------------------
>
> _______________________________________________
> PythonCE mailing list
> PythonCE at python.org
> http://mail.python.org/mailman/listinfo/pythonce
>
>
> End of PythonCE Digest, Vol 38, Issue 13
> ****************************************
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/pythonce/attachments/20060927/731b8a05/attachment.html 


More information about the PythonCE mailing list