Re: [PythonCE] tk/tcl

2007-01-11 Thread Bandung

(I sent this message  2 hrs earlier with a couple of embedded files.  The
attached files seem to be the cause for holding up the posting of the
message on the board)   Anyways,  here are the final steps for getting your
installation working


---.

You are almost there!  Looks like you need tcl.  Download this file and
unzip it.  it is a later version of tcl than the one that you were using.

tcltk8_4_12_ce-arm.zip

Place the lib directory under your \\Program files\\  directory.  
You can ignore the directory called bin which contains the three files,
celib, tcl84.dll and tk84.dll since you have already copied into your
Windows directory.

So your Python installation directory structure now looks like this...

\\Program files\\Python25
\\Program files\\lib
\\Windows\\ ...those three files with the names of the files that were in
the directory called bin

Your are now ready to start coding!  

With the files from this lib, you will also be able to use bwidgets as
well as Tkinter widgets.  There are also iwidgets which I haven't tried yet. 
Plus, if you want to tcl  then copy the tcls84h.exe and wish84.exe files
into your Windows directory as well.  And if you want a cool table widget,
you can use the following file.  Place it in your lib directory along side
of the bwidget directory etc.

Tktable2.zip







John Aherne wrote:
 
 Bandung wrote:
 Place these two files in your \\Python25\\Lib   directory and then run
 root =
 Tkinter.Tk() again.

 http://www.nabble.com/file/5569/Tkinter.py Tkinter.py 
 http://www.nabble.com/file/5570/Tkinter.pyc Tkinter.pyc 

 again, soft reset is always a good idea at this point.




   
 Thanks for the 2 files.
 
 I removed everything and started from scratch again. Soft reset after 
 each stage.
 
 Installed python25
 Copied in celib,tcl84,tk84 into \\windows.
 Copied Tkinter.py, Tkinter.pyc into python25\lib along with os.py that 
 was there already.
 
 Import Tkinter is OK
 root = Tkinter.Tk() gives exactly same problem as before
 
 Invalid command name 'tcl_findLibrary'
 
 Makes me think some fundamental bit is missing from the python25 install.
 
 Regards
 
 John Aherne
 
 
 ___
 PythonCE mailing list
 PythonCE@python.org
 http://mail.python.org/mailman/listinfo/pythonce
 
 

-- 
View this message in context: 
http://www.nabble.com/tk-tcl-tf2953745.html#a8278075
Sent from the Python - pythonce mailing list archive at Nabble.com.

___
PythonCE mailing list
PythonCE@python.org
http://mail.python.org/mailman/listinfo/pythonce


Re: [PythonCE] psyqlite and tkinter

2006-12-18 Thread Bandung

Here is the script that Luke Dunstan built to correct the indentation
problem.  I saved it in a file called pythonrc.py.  Why?  Because this file
gets loaded automatically everytime one launches a python interpreter. 
Unfortunately, pytonce25 looks  for it in the PDA's \Temp directory.  So
that is where you need to put it.

http://www.nabble.com/file/4860/pythonrc.py pythonrc.py 

  

Bandung wrote:
 
 Yes you definitely will need the kTinker file.  IF you plan on writing
 database driven apps then you will need psyqlite.  Here is my readme
 that I created to remind me of where to put these files plus the fix for
 the indentation problem that python25ce has.
 
 
 
 MY README.txt
 
 
 
 Release Name: Python-2.5-20061012
 
 Notes:
 This is a Windows CE / ARM port of Python 2.5. It has only
 been tested on Pocket PC 2003 for ARMV4 architecture.
 
 If you are upgrading from version 2.4.x or earlier then I
 recommended that you first make a backup of your Python
 installation, uninstall it and then install the new version.
 
 The files are:
 
 PythonCE-2.5-20061012-source.zip: the full source package
 
 PythonCE-2.5-20061012-patch.zip: the source as a patch to
 the official Python 2.5 release
 
 PythonCE-2.5-20061012-dev.zip: contains the header files
 and import library necessary for building C extension
 modules for PythonCE
 
 PythonCE-2.5-20061012-setup.exe: a setup program that
 registers PythonCE with Microsoft ActiveSync's
 application manager and installs it automatically
 
 PythonCE-25-20061012.PPC2003_ARM.cab: the cabinet file that
 is included as part of the setup.exe, for people who wish to
 install automatically but without an ActiveSync connection
 
 PythonCE-2.5-20061012-pysqlite.zip: contains sqlite3.dll and _sqlite3.pyd
 (these are 
 
 not included in the .cab/.exe)
 
 PythonCE-2.5-20061012-_tkinter.zip: contains _tkinter.pyd (this is not
 included in 
 
 the .cab/.exe)
 
 If you get the .exe then you don't need the .cab file.
 ---
 (1) the cab install is missing files _tinker.pyd 
 
 1. Copy it into the python25\DLL directory
 
 (2) the cab install is missing files sqlite3.dll  and _sqlite3.pyd 
 
 To install this package:
 
 2. Copy sqlite3.dll into the PythonCE base directory, i.e. the directory
 containing 
 
 python25.dll
 
 3. Copy _sqlite3.pyd into the DLLs subdirectory where all of the other
 .pyd files are 
 
 installed
 
 
 (3) IndentationError: expected an indented block. 
 
 4. There is a little script to fix this problem with python25.exe  I
 copied the 
 
 script from nabble and placed it into a file called pythonrc.py. Don't
 forget to use 
 
 the pythonrc file.py by placing it into the temp directory.  This resolves
 the 
 
 problem with the interpreter not recognizing the indent behaviour needed
 for multi 
 
 line scriptsthat occurs after a colon: 
 
 For example, consider this simple example:
 
  for i in xrange(10): 
 
 This will result in an error within the stock python25ce.  To get around
 this, create 
 
 a file called pythonrc.py and paste the script provided by Dunston.  I
 then placed 
 
 this file in my \Temp directory which is where python25ce looks for it. 
 This will 
 
 change with the next release of python.  Now indentation works properly
 whenever I 
 
 launch a python interpreter.
 
 
 NOTE: pythonrc.py only runs when you invoke the interpreter.  It does not
 launch when 
 
 you run a module.
 
 
 
 
 JBirdAngel wrote:
 
 
 
 
   
 
 
 its okay to ask questions here even if id ont have
 python installed yet and am not a programmer yet right? just wanna
 maker sure 
 
 i am wondering if i want psyqlite and tkinter zips that are part of the
 total pythonce 2.5 download but not part of the setup/cab.. tkinter is
 soemthign to do with gui i think? 
 
 thanks - jason 
 
 
 
 
 ___
 PythonCE mailing list
 PythonCE@python.org
 http://mail.python.org/mailman/listinfo/pythonce
 
 
 
 

-- 
View this message in context: 
http://www.nabble.com/psyqlite-and-tkinter-tf2830373.html#a7925682
Sent from the Python - pythonce mailing list archive at Nabble.com.

___
PythonCE mailing list
PythonCE@python.org
http://mail.python.org/mailman/listinfo/pythonce


Re: [PythonCE] thanks

2006-12-15 Thread Bandung

Vim is a text only editor.  If you want to retain embedded word processing
formatting, you will have to use something like pocket word (free with the
windows mobile emulator link that I sent you or free with any pda that you
purchase).  Otherwise ya hafta pony up and buy TextMaker - which I love.

I don't have an external keyboard.  Still looking and trialing them.  I have
a Starcom 6700 which includes a hardware keyboard.

Here is the link to my pocket Vim file.

http://uploadhut.com/view.php/251938.zip Pocekt Vim 

Remember, you will have to go through the various sub folders and delete the
files that you don't need.  There are 4 megs of doc files, and several megs
of tutorial files that you might not want on your pda.  Also there are tons
of syntax formats that you may never use.

If you open my vimrc_bandung.vim setup file, you will note that I have
defined a few short keys.  For example, to type an esc  I use three tabs
tabtabtab.  I also wanted square brackets so I use tabtabk and
tabtabl  Here are my keyboard mappings for the additional keys that are
not on the Starcom6700.

vmap tab gv
vmap s-tab gv
imap tabtabtab C-c
imap tabtabdown \
imap tabtabk [
imap tabtabl ]
imap tabtabn 
imap tabtabm 
imap tabtaba ^


map tabtabtab C-c
map tabtabq C-Q
map tabtabdown \
map tabtabk [
map tabtabl ]
map tabtabn 
map tabtabm 
map tabtaba ^


set lines=10
set tw=78
set mouse=a
set nowrap
set expandtab
set ruler
filetype plugin on
filetype indent on

I would not seriously consider doing my programming solely on a pda.  It is
at least twice as slow as a desktop and the screen real estate size seems
frustratingly too small after awhile.
  


-- 
View this message in context: 
http://www.nabble.com/thanks-tf2828051.html#a7900449
Sent from the Python - pythonce mailing list archive at Nabble.com.

___
PythonCE mailing list
PythonCE@python.org
http://mail.python.org/mailman/listinfo/pythonce


Re: [PythonCE] thanks again

2006-12-15 Thread Bandung

(1) You unzip the file and copy the Vim directory to your \Storage
Card\Program Files\Vim  directory or into the device's main memory ie
\Program Files\Vim

(2) You will want to create a shortcut to the Vim.exe executable.  Then you
can launch Vim and begin programming.  Notice the context sensitive color
hiliting that is within Vim.  You can get the same feature using Idle by the
way.

http://www.nabble.com/file/4760/vim-1.gif 

You install python and can run it.  I like to put my unit in the landscape
mode and use the hardware keyboard.  If you want to use the Sip keyboard,
you can.  I use Calligrapher's SIP keyboard because it floats and I can move
it to the top, middle or bottom of the screen.  Calligrapher also gives me
an esc key and a few other goodies.


http://www.nabble.com/file/4761/python-1.gif 

(3) You don't need a cmd console to program with.  I wanted it so that I
could launch programs from a command prompt.  Since my pocket SSH tunnelling
programme must be launched via a dos command prompt, that's what I use it
for.  I can also launch other programs from the command prompt such as
pword.exe, python, Vim, you name it.  I can also launch an apps and provide
it with an  input file name as a command argument and the app will start
with that file loaded.  Notice how I've typed python calctaxes.py at the
command prompt.  This will launch python and load the module.  You will also
note that I ran a bat file that I created.  This bat file is called env.bat
and it expands my pocket pc's Path to include where my Python, Vim and other
apps are located.

I already provided the links to these cmd files, either Microsoft's (which
you see in the image) or Symbol's pocket console.
http://www.nabble.com/file/4764/cmd-1.gif 

(4) I added a little utility that permits me to do a right click if you
will on a file within the file explorer and choose an alternate default
open.  You can see the additional command called open with in the next
image.  This permits me to simultaneously launch a python module, then move
to my file explorer and choose to open it with vim in  order to edit it.

http://www.nabble.com/file/4765/open-1.gif 

(5)  Putting it all together.  I developed a gui app using tKinter and
python.  I later added Bwidgets and then found another widget called
tkTable.  I would start with these tools in order to build your first gui
app.  I had a lot of trouble trying to get wxPython to work on my pda.  I
would prefer to use this tool since I use it on my desktop but, it won't
load.  Keeps writing an out of memory error.

So there you have it.  You should be able to test these tools using your pda
emulator on your desktop.  One other thing.  It makes sense to get a good
taskbar manager.  I use vbar.  This works like alttab on your desktop so
you can easily move between apps that are open, or close them.

http://www.nabble.com/file/4766/tkinter-1.gif 




JBirdAngel wrote:
 
 
 
 
   
 
 
 Thanks again for the info and for the file. 
 
 just so i understand, as i said im not too knowledgable about this so
 far, so this will completley install vim, and to do that basically i
 just copy the Vim folder onto my pocket pc, since you have already
 installe dthe desktop version and copied the subfolders to your pda i
 would not have to do this correct? 
 
 in addition to this would be doing the console like you said, and of
 course installing pythonce, then i would be set up for programming on
 the pocket pc right?nbsp; 
 
 the other piece i would want would be GUI stuff, and thats pretty much
 all of it? or atleast all of it i need to know now to get started and
 the rest i would learn as i go? 
 
 and thank you for mentioning word, as i do not have a pocket pc, but
 being that it was a .php file word didnt see it and coudlnt open it,
 but i changed it to a .txt and it opened just fine, so in my
 understanding i can edit it in word which keeps the formating, and then
 just change it back to a .php for it to work on the web... kool 
 
 Vim will however keep the python formatting right? apparently text and
 word processing programs do formatting differently i guess. 
 
 i like my pocket pc, its fun and kool and its kool to be able to
 program in python on it... once/if i learn :) 
 
 thanks - jason 
 
 
 
 
 ___
 PythonCE mailing list
 PythonCE@python.org
 http://mail.python.org/mailman/listinfo/pythonce
 
 

-- 
View this message in context: 
http://www.nabble.com/thanks-again-tf2830049.html#a7902922
Sent from the Python - pythonce mailing list archive at Nabble.com.

___
PythonCE mailing list
PythonCE@python.org
http://mail.python.org/mailman/listinfo/pythonce


Re: [PythonCE] psyqlite and tkinter

2006-12-15 Thread Bandung

Yes you definitely will need the kTinker file.  IF you plan on writing
database driven apps then you will need psyqlite.  Here is my readme that
I created to remind me of where to put these files plus the fix for the
indentation problem that python25ce has.



MY README.txt



Release Name: Python-2.5-20061012

Notes:
This is a Windows CE / ARM port of Python 2.5. It has only
been tested on Pocket PC 2003 for ARMV4 architecture.

If you are upgrading from version 2.4.x or earlier then I
recommended that you first make a backup of your Python
installation, uninstall it and then install the new version.

The files are:

PythonCE-2.5-20061012-source.zip: the full source package

PythonCE-2.5-20061012-patch.zip: the source as a patch to
the official Python 2.5 release

PythonCE-2.5-20061012-dev.zip: contains the header files
and import library necessary for building C extension
modules for PythonCE

PythonCE-2.5-20061012-setup.exe: a setup program that
registers PythonCE with Microsoft ActiveSync's
application manager and installs it automatically

PythonCE-25-20061012.PPC2003_ARM.cab: the cabinet file that
is included as part of the setup.exe, for people who wish to
install automatically but without an ActiveSync connection

PythonCE-2.5-20061012-pysqlite.zip: contains sqlite3.dll and _sqlite3.pyd
(these are 

not included in the .cab/.exe)

PythonCE-2.5-20061012-_tkinter.zip: contains _tkinter.pyd (this is not
included in 

the .cab/.exe)

If you get the .exe then you don't need the .cab file.
---
(1) the cab install is missing files _tinker.pyd 

1. Copy it into the python25\DLL directory

(2) the cab install is missing files sqlite3.dll  and _sqlite3.pyd 

To install this package:

2. Copy sqlite3.dll into the PythonCE base directory, i.e. the directory
containing 

python25.dll

3. Copy _sqlite3.pyd into the DLLs subdirectory where all of the other .pyd
files are 

installed


(3) IndentationError: expected an indented block. 

4. There is a little script to fix this problem with python25.exe  I copied
the 

script from nabble and placed it into a file called pythonrc.py. Don't
forget to use 

the pythonrc file.py by placing it into the temp directory.  This resolves
the 

problem with the interpreter not recognizing the indent behaviour needed for
multi 

line scriptsthat occurs after a colon: 

For example, consider this simple example:

  for i in xrange(10): 

This will result in an error within the stock python25ce.  To get around
this, create 

a file called pythonrc.py and paste the script provided by Dunston.  I then
placed 

this file in my \Temp directory which is where python25ce looks for it. 
This will 

change with the next release of python.  Now indentation works properly
whenever I 

launch a python interpreter.


NOTE: pythonrc.py only runs when you invoke the interpreter.  It does not
launch when 

you run a module.




JBirdAngel wrote:
 
 
 
 
   
 
 
 its okay to ask questions here even if id ont have
 python installed yet and am not a programmer yet right? just wanna
 maker sure 
 
 i am wondering if i want psyqlite and tkinter zips that are part of the
 total pythonce 2.5 download but not part of the setup/cab.. tkinter is
 soemthign to do with gui i think? 
 
 thanks - jason 
 
 
 
 
 ___
 PythonCE mailing list
 PythonCE@python.org
 http://mail.python.org/mailman/listinfo/pythonce
 
 

-- 
View this message in context: 
http://www.nabble.com/psyqlite-and-tkinter-tf2830373.html#a7902999
Sent from the Python - pythonce mailing list archive at Nabble.com.

___
PythonCE mailing list
PythonCE@python.org
http://mail.python.org/mailman/listinfo/pythonce


Re: [PythonCE] VimCE

2006-12-14 Thread Bandung

Yes it is Rainer's VIM.  I wish I knew how to compile Windows apps from
source code.  In that case, I would try to get version 7.0 working.  

(1) The good news is that Rainer's Vim 6.0 version works quite well.  I had
to add additional file folders and populate them with the necessary plugins
in order to get all of the menu features working.  To do this, I installed
the desktop version 6.3 of Vim and then copied the entire sub folder
structure over into my pda and voila, everything worked except for one
script, vim.vim.  When I deleted it, everything, and I do mean everything
else within Vim worked.  I added the most up-to-date python syntax script I
could find and that is what I use.

My pda has a hardware keyboard so I use it extensively.  I have programmed
missing keys for the escape key and some other combinations such as ctrl-Q
as an example.  I also wanted a backward slashes, etc.  I can get a lot of
things done on my pda with this hardware keyboard.  Even though I have
Calligrapher installed (which I love by the way) I don't need it when I am
editing code.

I would be willing to zip my Vim directory and upload it somewhere in order
for you to take a look at .  It has the _vimrc file setup for those features
that I use.  You don't have to stick with them.  It will give you an idea of
how useful this program is when you configure it to your liking.

(2) Now that I have managed to get a pocket console programme working, I
don't see the need to use VIM as a pda console anymore.   

(3) The third thing that I wanted to have was the ability to have an open
With option within my file explorer so that I could choose either of the
following actions to a) launch the python module by clicking on it or b)
open it within Vim for editing.  I was trying to get this working within Vim
by writing a macro that would permit me to execute the module that I was
editing but so far no luck.  What I discovered instead was a little utility
that attaches itself to the windows file explorer and permits me to do jsut
that.  If I click on the file, it executes.  If I click and hold, I get a
context menu where I choose open with and then I use Vim to edit it.  

I wish Total Commander's view or edit command worked properly. 
Unfortunately it doesn't  appear to use  around the file name that is
being clicked on so every file that is within a directory whose name has a
space in it, doesn't lauch properly.  For example, all files within my
storage card since they are inthe \Storage Card\whatever.file and because
of the space, the program thinks the directory is  \Storage rather than
\Storage Card .  The same thing is true with Resco's file explorer.  Their
open with feture doesn't work on my Windows 5.0 device.  Now it could be
that something I've installed is causing this behaviour since I don't see
anyone else complaining about this.

(4) There are some capabilities within the current python ports that are
missing that would help with debugging.  Examples are the ability to provide
arguments when launching python such as 

   python -i /myfile.py   (the ability to execute a module and upon its
completion, switch to a working interpreter mode).
   python -m pdb /myfile (the ability to execute a command such as the
python debugger pdb and then launch a module in the interpreter with the
debugger running)


That's my experience to date.



JBirdAngel wrote:
 
 
 
 
   
 
 
 is it VimCE that you use from Rainer? 
 
 is this this and the command console things youve been talking about
 the best development platform for python? i dont know if im saying it
 right or what the difference between an editor and an IDE is unless the
 difference is the ide running the programs/scripts too, or are there
 other options available? 
 
 thanks - jason 
 
 
 
 
 ___
 PythonCE mailing list
 PythonCE@python.org
 http://mail.python.org/mailman/listinfo/pythonce
 
 

-- 
View this message in context: 
http://www.nabble.com/VimCE-tf2823987.html#a7883485
Sent from the Python - pythonce mailing list archive at Nabble.com.

___
PythonCE mailing list
PythonCE@python.org
http://mail.python.org/mailman/listinfo/pythonce


Re: [PythonCE] VimCE

2006-12-14 Thread Bandung

Editing vs IDE

Editing
The most sought after features that I like to see in an editor are context
sensitive hiliting and a lot of short cut keys.  It would also be nice to
have auto completion of commands.  I don't have the latter within VimCE.  

IDE
The ability to execute the modified code with a single click is really cool. 
It would also be cool to support auto completion of commands.  A third
feture would be the ability to enter some break points for debugging. 
Another capability would be to be able to access a graphical GUI builder,
look at your code using a UML viewing mode, etc.

IDLE is a pretty decent editor and IDE.  But I am far more proficient
editing code from within Vim.  All I want over and above a decent editor for
the pda environment now is the ability to execute that modified code easily
without having to use 4 or 5 clicks  (to find files that are deep within
some file folder structure on my Storage Card).   I have discovered a few
work arounds which gets it down to two clicks and now I don't have to worry
about a modified py module not being reloaded by IDLE and executed.   So
that is the extent of my search for a better IDE at this juncture.


-- 
View this message in context: 
http://www.nabble.com/VimCE-tf2823987.html#a7883665
Sent from the Python - pythonce mailing list archive at Nabble.com.

___
PythonCE mailing list
PythonCE@python.org
http://mail.python.org/mailman/listinfo/pythonce


Re: [PythonCE] Python 2.5 for Windows CE / ARM

2006-12-13 Thread Bandung

My guess is that you have a Sigmarion handheld.  (You could have made our
task so much easier by telling us what device you had in your first post). 
The reason why you are using the dummy Aygshell is so you can make software
that was compiled for pocketpc's run on a handheld.  I use to have an HP
Jornada 720 and was used to employing this trick.  The aygshell.dll handles
new style command bar at the bottom of the screen.  the gx.dll  is related
to gapi and a third software file requirement is the mfcce300.dll that comes
with PPC

Many a program would report the error not a win ce application  if the
wrong version of gx.dll is loaded.  Pocket TV users encountered this problem
often when they installed software that over had written a working gx.dll. 
The solution is to get a working gx.dll from another package.  I would
probably first try the gapi from this site but if it hiccups, its back to a
ppc gapi instead.

http://www.wincesoft.de/html/gapi_for_hpc_s.html hpc gapi 

Next thing is to make sure that you have a working aygshell.  You may have
to recreate one if various others don't work for you.

http://www.wincesoft.de/aygshell.dll dummy aygshell.dll 

Use the info from this site to test your combination of gx.dll and
aygshell.dll

http://www.wincesoft.de/html/ppc_apps_on_hpc_s.html getting pocketpc apps to
run on handhelds   

The following link will provide you with additional information on how to
create your own aygshell.dll  as well as a gx.dll.ini file.

http://pages.ccapcable.com/lac/PPC_on_HPC.html using fake ppc dll's 

Finally, you will need to get the correct version of mfcce300.dll .  If you
are trying to run python 2.5 you probably need mfcce400.dll  Try both.

If python 2.5 won't run on your handheld, there is always a chance that the
2.4.3 version will.  With regard to compiling your own version of python 2.5
for the sygarrion, well if you are capable of doing that, I've got a whole
mess of other apps that I would like your assistance in recompiling,
beginning with wxpython and ending with PIL.  ;)

Good luck.



David Goncalves wrote:
 
 Bandung wrote:
 David, Could you download this version of python in a cab format and try
 to
 install it and tell us what happens?
 
 http://downloads.sourceforge.net/pythonce/PythonCE-243-20060430.PPC2003_ARM.CAB?modtime=1146511186big_mirror=0
 python 2.4.3 
 
 
 I've tried this version and the problem was the same.
 
 But during this time i had an idea and googled ;) It's seems that the
 only external DLL used by the exe is 'Aygshell.dll'. But in WinCE 4.2
 core version there is no Aygshell included.
 
 I'm actually using a copy of this Dll needed for other softs on my
 device.
 
 I've found an old (40Kb) version of that Dll that makes PyCE work on
 my device but after putting that Dll, my system is quite unstable.
 (i.e nothing appears on my control panel... and other strange things)
 
 
 Do you have an idea of what function is used by Python when it is
 launched and why my 'dummy' aygshell is not good for him ?
 ___
 PythonCE mailing list
 PythonCE@python.org
 http://mail.python.org/mailman/listinfo/pythonce
 
 

-- 
View this message in context: 
http://www.nabble.com/Python-2.5-for-Windows-CE---ARM-tf2715042.html#a7864386
Sent from the Python - pythonce mailing list archive at Nabble.com.

___
PythonCE mailing list
PythonCE@python.org
http://mail.python.org/mailman/listinfo/pythonce


Re: [PythonCE] grid manager

2006-12-12 Thread Bandung

The following code snippet shows what I use in order to place a frame at the
top rather than the centre of my screen.

 --Frame ---
self.frame1=Frame(Parent)
# self.frame1.configure(width= 235,height= 150)
self.frame1.grid(row=0,column=0, sticky=W)
# self.frame1.place(x=0)
# self.frame1.configure(bg=green)   

self.frame3=Frame(Parent)
# self.frame3.configure(width= 235, )
self.frame3.grid(row=1,column=0, sticky=W) 

self.frame4=Frame(Parent)
# self.frame3.configure(width= 235, )
self.frame4.grid(row=2,column=0, sticky=W) 

You will note that frame1 has been positioned using the grid. I set its
position at row = 0, col = 0.  And by using the parameter sticky = W, it
has been left justified.  I could have used sticky= NW but instead, I chose
to use the another command to force the frame to always be in the top left
corner.  That is the place command.  

 frame.place(x=0) 

forces everything into the top left hand corner.

Hope this helps.



dave_welch wrote:
 
 When using the grid manager is there any way to set the start of the  
 grid. For example, I have my window default to the screen size when  
 it starts running, but when I first use the grid manager (row=0,  
 column=0) it places the widget at the center of the window. Is there  
 any way to make row/column (0,0) to start from the top of the window  
 rather than the center? Thanks.
 ___
 PythonCE mailing list
 PythonCE@python.org
 http://mail.python.org/mailman/listinfo/pythonce
 
 

-- 
View this message in context: 
http://www.nabble.com/grid-manager-tf2715939.html#a7835000
Sent from the Python - pythonce mailing list archive at Nabble.com.

___
PythonCE mailing list
PythonCE@python.org
http://mail.python.org/mailman/listinfo/pythonce


Re: [PythonCE] Programming on Pocket PC's, use Python?

2006-12-12 Thread Bandung

If you want to play around with the PPC before buying one, try using the
following emulator.  It can be run from a usb key.  In that way, you can
take your virtual ppc anywhere with you.

http://www.furrygoat.com/2005/09/portable_ce_20.html Portable Win CE 

This pocket pc on an usb stick will run all of the currently embedded apps
that ship with WIndows mobile 5.0 as an example.  Plus you can add software
such as pythonce and run it.  FOr whatever reason, I could not get wxPython
to play in this environment so I have scrubbed playing with it.  IT is not
all that stable and  from my experience there seems to be no guarabntee that
an app which runs within the emulator, will run on the hardware device (or
vice versa)

You will be able to see how things work.  The speed of the emulator is not
that great so you may not be able to accurately access if certain software
packages will run fast enough for you.

Anyways, its a good place to start playing with windows mobile apps before
investing any money.  I initially liked working with the emulator because I
could run pocket pc software with a screen resolution of 640 x 480 rather
than that dinky 320 x 240.  But the inability to get a software
configuration that works on the hardware device, to run on the emulator, has
caused me to dump it.

If you want a better understanding of the differences between pythonce and
python, visit the web site.

http://pythonce.sourceforge.net/Wikka/HomePage pythonce 

In general, most features work.  There are some nifty debugging capabilities
that I wished  worked and a number of os and sys functions that aren't there
in the pocket pc version but overall, its a pretty good emulation.  The
biggest problem is with building a GUI that is portable between your desktop
and the pocket pc.  The simplest GUI for me is TKinter but the widgets are
very limited.  I added TkTable which helps a bit.  Plus I have used
BWidgets.  The latter works great on the desktop but one widget, the combo
box blows up on the ppc.



JBirdAngel wrote:
 
 
 
 
   
 
 
 Hello, 
 
 i am looking into Pocket PC's and am wanting to better understand the
 options for programming on them.nbsp; python is what im most familiar
 with
 on dekstops, but still am not a programmer, i like that it is portable
 and so on, so id like to be able to program on my pocket PC but have
 the program be as cross platform as possible, i dont fully understand
 what all the differences betweeen PythonCE and Python for the desktop
 mean in relation to how it would affect the portability of the
 programs, so i am wondering about that.. 
 
 also is PythonCE continually and currently being developed? 
 
 what all are my options for programming on Pocket PC's for a variety of
 platforms or where is the best place to look?nbsp; it looks like various
 microsoft things are used alot for pocket PC's but it sounds like they
 are very platform restricted and so not at all what im interested in. 
 
 ive also seen a couple things like Pocket Programming Language and
 Go-DB, but i am not familiar enough with programming languages to
 udnerstand what all these are capable of, and i would of course prefer
 something that doest cost money. 
 
 things i might program would range so i cant really specify what
 exactly id be interested in, but i would like to be able to program on
 a Pocket PC for something that is intended for a Desktop, so if i came
 up with some kind of program suited directly to an individual need of
 say a store, i would like to be able to program for it on the pocket PC
 even if its something that no Pocket PC would ever use, is this
 possible? 
 
 i dont want to be limited and would want the program to work on as wide
 a range of things as possible, the Pocket PC as well as Linux/desktop
 windows.. 
 
 also i dont know all that much about pocket pc's at this point, i read
 that one of the cons to consider for python is people having to
 download it in order to run the program as well as the size, any
 suggestions for better understanding all the consequences of this?nbsp;
 and
 affects of taking up the more space would take? 
 
 on the newer Pocket PC's that have 400Mhz or up to i think 600mhz(?)nbsp;
 is there alot of noticeable slowness with python being interpreted? or
 how can i better understand to compare the possibilities that may be
 open to me as far as programming on a pocket pc. 
 
 i am very new to pocket pc's and new to python as well but have read
 some on it, but i really dont understand how it all works or the
 differences at this point, for example there is a pocket pc program
 called Pocket Artist that seems to me to have the main features one
 would want from GIMP or Photoshop, yet it takes up like 4mb or
 something? i dont understand how such a featurefull program can take up
 such little space, and why then do desktop programs take up so much
 more space? 
 
 if this is an improper place for these questions please let em know as
 im not sure where to go with 

Re: [PythonCE] Python 2.5 for Windows CE / ARM

2006-12-12 Thread Bandung

You should either use the CAB install option (ie download the cab file and
place it on your mobile)  or run the install.exe from you desktop when you
are linked to your mobile via ActiveSync.

Make sure that you get the additional files that are missing, ie the Tkinter
files as well as the MySQLite files and place them within the appropriate
directory on your mobile.  The instructions are there in the download.  Or
you can refer to prior message threads on this site.




David Goncalves wrote:
 
 Hello,
 
 I'm trying to install Python on my CE device since many time ;)
 I've just found that release of PythonCE (2.5) but unfortunetly
 this version is not working on my device.
 
 I've the following message : Python.exe is not a valid CE application.
 
 My device is running WindowsCE 4.2 on an ARM processor (Intel PXA255).
 
 Do you think it's just a compil time option to make it compatible or
 there is no chance for me to see it working on my device ? ;)
 
 Thanks.
 ___
 PythonCE mailing list
 PythonCE@python.org
 http://mail.python.org/mailman/listinfo/pythonce
 
 

-- 
View this message in context: 
http://www.nabble.com/Python-2.5-for-Windows-CE---ARM-tf2715042.html#a7835484
Sent from the Python - pythonce mailing list archive at Nabble.com.

___
PythonCE mailing list
PythonCE@python.org
http://mail.python.org/mailman/listinfo/pythonce


Re: [PythonCE] wxPython for PythonCE announcement

2006-10-17 Thread Bandung

I still think that the problem is related to hard coded paths in the binary. 
While the actual name of the storage card might not be the problem, what
appears more certain is that the program can't find the necessary files -
either because of the default paths that the author uses or because the
names don't agree with what I have on my pda.

My problems don't relate to how I get my scripts over to the pda since I do
not use ActiveSync, preferring to transfer files either via wifi or
bluetooth.  It seems to me that the only common denominator is that this app
runs better from main memory and not from a storage card.  There is no way
that I can free up enough space to run this baby from main memory.  There
are other apps that I prefer to give this precious memory space to rather
than pythonce and its evil twin sister, wxPythonce.  

For wxpythonce to work from my storage card, methinks that the author will
have to change the paths so that the necessary files can be located.  I vote
for adding \Storage Card\Program Files\Python24\Lib\wxto the mix.

This problem can only get worst, the more python distributions one has. 
Currently, I keep python 2.3.4, python2.4.2 and python 2.5 on my storage
card.  which means that there are actually three python directories, not
one.  So while his paths  might work for python 2.4.x, they won't work with
my python 2.5 or python 2.3.x installs.  Interesting enough for me,  I can't
get the python 2.3 version of wx to run with python 2.3 either.  While I can
at least type import wx using the 2.3 versions of both products and not
have the device blow up or produce an error, I can't run any programs
because, again, certain files can't be found.

Given all of the little show stopping gotchas that I've experienced with (a)
the tk8.4.dll blowing up my combobox control within bwidgets and now (b)
wxPythonce not even being able to run, this is enough to make me want to go
back to using microsoft's various gui builders and simply call things via
ctypes.

Sign... If only we could get Linux loaded on these windows mobile 5.0
designed devices, then my how to compile proper binaries problems would go
away.




jeffbarish wrote:
 
 Jeffrey Barish wrote:
 
 I suspect that the problem actually has something
 to do with ActiveSync.  I seem to have better luck getting software to
 run
 when I manipulate it using Pocket Controller connected by Wifi rather
 than
 ActiveSync connected by USB.
 
 It may be sufficient to remove the PDA from its cradle when you are ready
 to
 run your program.  If you still need a connection to the host, use Wifi
 instead.
 -- 
 Jeffrey Barish
 
 ___
 PythonCE mailing list
 PythonCE@python.org
 http://mail.python.org/mailman/listinfo/pythonce
 
 

-- 
View this message in context: 
http://www.nabble.com/wxPython-for-PythonCE-announcement-tf2024801.html#a6864556
Sent from the Python - pythonce mailing list archive at Nabble.com.

___
PythonCE mailing list
PythonCE@python.org
http://mail.python.org/mailman/listinfo/pythonce


Re: [PythonCE] Python 2.5 for Windows CE / ARM

2006-10-15 Thread Bandung

What is Durus?  Well it seems that me eyes ain't what they use to be - or I'm
just a wishful thinker.  Durus is a zodb like persistant storage service
that uses pickling.   https://www.mems-exchange.org/software/durus/ durus . 
When I look more closely at the website, it says that Pycon 2005 included
Durus: A Persistence System for Python

I thought it said python

Thank you for adding the sqlite3 files, by the way.  Much appreciated.



Luke Dunstan wrote:
 
 
 - Original Message - 
 From:  Luke Dunstan [EMAIL PROTECTED]
 To: pythonce@python.org
 Sent: Thursday, October 12, 2006 5:59 PM
 Subject: Re: [PythonCE] Python 2.5 for Windows CE / ARM
 
 

 - Original Message - 
 From: Bandung [EMAIL PROTECTED]
 To: pythonce@python.org
 Sent: Thursday, October 12, 2006 12:09 PM
 Subject: Re: [PythonCE] Python 2.5 for Windows CE / ARM

 Also, import dbapi2 isn't recognized as a legitimate command (possibly 
 due
 to the current default paths)

 I think this is because the release doesn't include pySQLite yet.
 
 As I mentioned in another email, I have now added 
 PythonCE-2.5-20061012-pysqlite.zip to the release, which contains the 
 missing pySQLite DLLs.
 
 Luke
 

 Will the durus persistence modules be eventually added with this
 release.

 What is it? Is it a part of the standard library?

 Luke




 Luke Dunstan wrote:

 A new release of Python for Windows CE is available. Download it here:

 http://sourceforge.net/project/showfiles.php?group_id=104228

 The release notes are linked from this page, but a direct link is:

 http://sourceforge.net/project/shownotes.php?release_id=454685group_id=104228

 Please consider this release to be a Beta because it has not been
 tested
 thoroughly enough on Windows CE to be considered stable. I think that 
 the
 most efficient way to continue testing will be for everyone to try it 
 and
 report any bugs.

 Luke Dunstan
 
 ___
 PythonCE mailing list
 PythonCE@python.org
 http://mail.python.org/mailman/listinfo/pythonce
 
 

-- 
View this message in context: 
http://www.nabble.com/Python-2.5-for-Windows-CE---ARM-tf2427402.html#a6827581
Sent from the Python - pythonce mailing list archive at Nabble.com.

___
PythonCE mailing list
PythonCE@python.org
http://mail.python.org/mailman/listinfo/pythonce


Re: [PythonCE] Python 2.5 for Windows CE / ARM

2006-10-11 Thread Bandung

I tried running a simple app that uses Tkinter but I get the error message
_tkinter not found.

Traceback (most recent call last):
  File \Storage
Card\5_software_developed\testcode\GstApps\gui_class\input.py, line 2, in
module
from Tkinter import *
  File
C:\devl\release\PythonCE-2.5-20061012\Python-2.5-wince\Lib\lib-tk\Tkinter.py,
line 38, in module
ImportError: No module named _tkinter

Can you compile the binaries with the typical /Storage card/Program
Files/Python25/ path so that we don't have to evoke work arounds in
order use these modules?

I really appreciate the gui popup that you implemented  when raw_input is
used.

Also, import dbapi2 isn't recognized as a legitimate command (possibly due
to the current default paths)

Will the durus persistence modules be eventually added with this release.



Luke Dunstan wrote:
 
 A new release of Python for Windows CE is available. Download it here:
 
 http://sourceforge.net/project/showfiles.php?group_id=104228
 
 The release notes are linked from this page, but a direct link is:
 
 http://sourceforge.net/project/shownotes.php?release_id=454685group_id=104228
 
 Please consider this release to be a Beta because it has not been tested 
 thoroughly enough on Windows CE to be considered stable. I think that the 
 most efficient way to continue testing will be for everyone to try it and 
 report any bugs.
 
 Luke Dunstan
 
 ___
 PythonCE mailing list
 PythonCE@python.org
 http://mail.python.org/mailman/listinfo/pythonce
 
 

-- 
View this message in context: 
http://www.nabble.com/Python-2.5-for-Windows-CE---ARM-tf2427402.html#a6769570
Sent from the Python - pythonce mailing list archive at Nabble.com.

___
PythonCE mailing list
PythonCE@python.org
http://mail.python.org/mailman/listinfo/pythonce


Re: [PythonCE] Fwd: PythonCE Digest, Vol 38, Issue 13

2006-09-28 Thread Bandung

I have.  Its an interesting gui builder for Tkinter.   And while I like its
ability to place the few Tkinter objects that it currently supports,
anywhere within the main window, it is not complete enough to develop any
serious guis.  One is forced to open up your favourite editor and begin
hacking.  All I use it for is rapid prototyping of a few layout concepts, 
to get an idea of where I might want to place things.  Lately I'm finding it
equally as fast to simply pull up a few base classes of previously designed
layouts and rework or sub class them.

My biggest complaint with this layout editor is its use of the place
geometry manager. I much prefer to use the grid geometry manager.  Second,
I prefer to have my widgets placed on frames rather than the main app
window.  I have inputted these desires to the author in hopes that the next
release will change that behaviour.

Also, the font is too small to read the menu bar or do any serious editing
of source code.  Overall, for my Tkinter gui development projects, I'm
sticking to typing in the commands and viewing the results.  And as for
editing source code, there is no way that this competes with idle or Vim
which both have good syntax hiliting and a host of other features.



Andy Baker wrote:
 
 Has anyone tried this?:
 
 http://sourceforge.net/projects/pyeditce
 
 ___
 PythonCE mailing list
 PythonCE@python.org
 http://mail.python.org/mailman/listinfo/pythonce
 
 

-- 
View this message in context: 
http://www.nabble.com/Re%3A-PythonCE-Digest%2C-Vol-38%2C-Issue-13-tf2346619.html#a6546214
Sent from the Python - pythonce mailing list archive at Nabble.com.

___
PythonCE mailing list
PythonCE@python.org
http://mail.python.org/mailman/listinfo/pythonce


Re: [PythonCE] Trying to Code Python ON a Pocket PC Phone

2006-09-27 Thread Bandung

Yes, I've tried typing long path names that point into the Storage Card and I
get nothing but the failed error -1.  Too bad windows doesn't have the same
concept as a Linux link.  It seems that if I put my *.exe files into the
windows directory, then :!start will find it.



Luke Dunstan wrote:
 
 
 - Original Message - 
 From: Bandung [EMAIL PROTECTED]
 To: pythonce@python.org
 Sent: Wednesday, September 27, 2006 2:35 AM
 Subject: Re: [PythonCE] Trying to Code Python ON a Pocket PC Phone
 
 
 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
 
 Have you tried this?:
 
 :!start \Storage Card\Program Files\Python24\python.exe
 
 (I haven't)
 
 Luke
 
 ___
 PythonCE mailing list
 PythonCE@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#a6530716
Sent from the Python - pythonce mailing list archive at Nabble.com.

___
PythonCE mailing list
PythonCE@python.org
http://mail.python.org/mailman/listinfo/pythonce


Re: [PythonCE] Trying to Code Python ON a Pocket PC Phone

2006-09-27 Thread Bandung

Ugggh.  retraction here. I can indeed call python.exe from my storage card
using the long path convention.  What I meant to say is that  I haven't yet
figured out how to execute a script sitting on my storage card.  Thank you
for pointing it out that executables do indeed work with the full path
statement.  Unfortunately for me, the whole point of this whole sordid
exercise is to get the script to run.. 

That old gotcha about the lack of a true console and commands such as
raw_input or input not being supported within the pythonce port has
reared its ugly head again.  And as you once wrote on this site, this is
probably why commands such as python.exe -i or the -m or -c option don't
work.

Still there is hope that this exercise might yet work.  I found a little
utility that will start python.exe and then when I pass along the name of
the python script that I wish to run, it runs that script.   Its a binary
that installs on the pda.  
http://www.pocketpcdn.com/articles/samples/Run_arm.exe run_arm.exeSo if
the author figured out how to do that with his proggie, then I most
assuredly should be able to do it within Vim.

Apart from having the desire to have the commands raw_input and
python.exe -i {script} working, I would love to have my pocket Vim
compiled with the python option.  In that way, I could write my Vim macros
in python!  Alas I know jack about how to get visual studio to compile
anything.  I still have eVC3 which I used to use for little Visual Basic
proggies on my HPC 2000 but that was way back when I was a Microsoft bigot. 
Since all of my programming efforts are simply part time and personal,
today, if it doesn't say Open Source with the word Python along side of
it, I ain't very interested.

Anyways, the pocket Vim  exercise looks mucho promising.  Now if I could
just get pysqlite with sqlite3 and wxpythonce and bwidgets to bleepin
work...


Bandung wrote:
 
 Yes, I've tried typing long path names that point into the Storage Card
 and I get nothing but the failed error -1.  Too bad windows doesn't have
 the same concept as a Linux link.  It seems that if I put my *.exe files
 into the windows directory, then :!start will find it.
 
 
 Luke Dunstan wrote:
 
 
 - Original Message - 
 From: Bandung [EMAIL PROTECTED]
 To: pythonce@python.org
 Sent: Wednesday, September 27, 2006 2:35 AM
 Subject: Re: [PythonCE] Trying to Code Python ON a Pocket PC Phone
 
 
 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
 
 Have you tried this?:
 
 :!start \Storage Card\Program Files\Python24\python.exe
 
 (I haven't)
 
 Luke
 
 ___
 PythonCE mailing list
 PythonCE@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#a6532035
Sent from the Python - pythonce mailing list archive at Nabble.com.

___
PythonCE mailing list
PythonCE@python.org
http://mail.python.org/mailman/listinfo/pythonce


Re: [PythonCE] Trying to Code Python ON a Pocket PC Phone

2006-09-26 Thread Bandung

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@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.

___
PythonCE mailing list
PythonCE@python.org
http://mail.python.org/mailman/listinfo/pythonce


Re: [PythonCE] how to take screenshot from pocketPC screen

2006-09-25 Thread Bandung

You could try Remote Display from Microsoft.  
http://www.microsoft.com/technet/prodtechnol/wce/downloads/ppctoys.mspx
remotedsp   you will see the contents of your pda on a similar sized screen
on your desktop.  Then use your favourite desktop capture utilitiy.




jeffbarish wrote:
 
 Petri Wunsch wrote:
 
 Has anyone been able to do a script which takes a sceenshot from the
 active window on PocketPC  and saves it to specified file?
 
 I use Pocket Controller which has that capability built in.  It can also
 capture a movie.  It's not free, but it has so many useful capabilities
 that I can't imagine operating without it.
 -- 
 Jeffrey Barish
 
 ___
 PythonCE mailing list
 PythonCE@python.org
 http://mail.python.org/mailman/listinfo/pythonce
 
 

-- 
View this message in context: 
http://www.nabble.com/how-to-take-screenshot-from-pocketPC-screen-tf2331190.html#a6499782
Sent from the Python - pythonce mailing list archive at Nabble.com.

___
PythonCE mailing list
PythonCE@python.org
http://mail.python.org/mailman/listinfo/pythonce


Re: [PythonCE] how to take screenshot from pocketPC screen

2006-09-25 Thread Bandung

There is also this free utility.  I haven't used it in years.  
http://www.freewareppc.com/graphics/cecapture.shtml CeCapture   will produce
screen captures from your pda and save them in your documents folder.  I'm
not a big fan of bmp images.  That's why I use the remote display utility
nowadays.



Bandung wrote:
 
 You could try Remote Display from Microsoft.  
 http://www.microsoft.com/technet/prodtechnol/wce/downloads/ppctoys.mspx
 remotedsp   you will see the contents of your pda on a similar sized
 screen on your desktop.  Then use your favourite desktop capture utilitiy.
 
 
 
 
 jeffbarish wrote:
 
 Petri Wunsch wrote:
 
 Has anyone been able to do a script which takes a sceenshot from the
 active window on PocketPC  and saves it to specified file?
 
 I use Pocket Controller which has that capability built in.  It can also
 capture a movie.  It's not free, but it has so many useful capabilities
 that I can't imagine operating without it.
 -- 
 Jeffrey Barish
 
 ___
 PythonCE mailing list
 PythonCE@python.org
 http://mail.python.org/mailman/listinfo/pythonce
 
 
 
 

-- 
View this message in context: 
http://www.nabble.com/how-to-take-screenshot-from-pocketPC-screen-tf2331190.html#a6499807
Sent from the Python - pythonce mailing list archive at Nabble.com.

___
PythonCE mailing list
PythonCE@python.org
http://mail.python.org/mailman/listinfo/pythonce


Re: [PythonCE] Seeking alternative to wxPython

2006-09-17 Thread Bandung

If you really want a Windows look and feel then I would suggest that you use
Visual Basic or any one of the visual microsoft development tools.  They are
cross platform if you don't mind sticking to windoze machines.  The
challenge then becomes, how do you point your callbacks into python, rather
than microsoft code?

You could try to use the pywin32 interface developed by Hammond to talk to
your gui.  Its been a long time since I used it for anything and that was
essentially for things like starting an excel spreadsheet and then copying
and pasting data into the spreadsheet from a python program.  I would also
think that  ctypes could help with calling into the win32gui as well.

For the time being, I am sticking with TKinker.  It is cross platform and it
works well on my windows mobile machine.   I can develop using python on my
desktop as well as pda.  I can also use more heavy duty editors such as
SPE on my desktop or iPython.  I use Vim on the pda. There is the promise of
some nice gui enhancing tricks with Tile for tcl/tkinter which I haven't
managed to find for my pda - only the desktop.  And there are a wealth of
additional controls that you can find on the net that extend the basic
TKinter controls.  

You could try to stick with wx for developing your gui and then using ctypes
to call into it.  I struggle with mastering c++ so wx is not my love child
sort of thing.  Things being as they are, its TKinter for tme.



jeffbarish wrote:
 
 When I embarked on my programming project, I had hoped that my choice of
 wxPython would make it possible for me to run my program without too much
 difficulty on Linux, Win XP, Win Mobile, and OSX, but so far I have not
 been able to get it to run reliably on even one platform, least of all
 winCE.  I had high hopes for the port recently announced by Ingmar Steen,
 but so far, at least, it suffers from the same problems that the earlier
 port had (although many other things are working better).  Even the
 version that runs on XP has problems that don't seem to be getting
 resolved.  Unfortunately, I am getting close to crunch time, so I can't
 wait much longer in the hope that a bug-free port will appear. 
 Accordingly, I am beginning to cast about for a fallback.
 
 I have seen references here to Pythonwin, but I am not familiar with it. 
 I gather that it contains the module win32gui and, if I understand
 correctly, that module provides an interface to the MFC routines for
 creating a GUI.  I understand that wxPython uses native routines to
 actually draw the GUI elements, so if I am reasoning correctly it follows
 that wxPython is calling the same routines that I could call directly
 using win32gui.  Thus, I should be able to do with win32gui anything that
 I am doing with wxPython -- unless win32gui is not complete.  What I lose
 by using win32gui rather than wxPython is portability, but perhaps I would
 have better luck getting the program to run reliably on winCE.  Is this
 reasoning correct?
 
 It looks as if the best documentation for Pythonwin is the book by Mark
 Hammond and Andy Robinson, but I note that it was published over 6 years
 ago.  Is it still sufficiently current to be useful?  Does anyone know
 whether a new edition is scheduled to appear soon?  Is there more current
 documentation somewhere?  Does Python Programming on WIN32 do an adequate
 job of explaining how to build GUIs using win32gui, or do I need
 documentation for the relevant portion of MFC as well?
 
 I hate the thought of rewriting my code again for a different GUI library. 
 I was happy using Qt on a Sharp Zaurus running Linux, but when Sharp
 withdrew the Zaurus from the US market I could not find a suitable
 substitute.  The only alternative I can think of in my current dilemma is
 to try to fix the bugs in the wxPython port myself, but I doubt that I
 have the skill.  Still, I might give it a try (if the author is willing)
 before embarking on yet another rewrite.  I would even consider hiring a
 consultant to work on the port, though previous efforts along this line
 have not borne fruit.
 

-- 
View this message in context: 
http://www.nabble.com/Seeking-alternative-to-wxPython-tf2143593.html#a5918589
Sent from the Python - pythonce forum at Nabble.com.

___
PythonCE mailing list
PythonCE@python.org
http://mail.python.org/mailman/listinfo/pythonce


Re: [PythonCE] IDE for Python on Windows Pocket PC?

2006-09-11 Thread Bandung

On the desktop, I develop my scripts with SPE  
http://www.stani.be/python/spe/blog/ SPE editor  and occasionally with
iPython or Boa Constructor.

On my pda, I now use only VIM with the python syntax plugin.  
http://www.rainer-keuchel.de/wince/vim.html VimCE  I have used the pocket
idle programme as well but vastly prefer VIM.

Since I have a windows mobile 5.0 device, there is no console that works. 
So I have to get VIM working by building an appropriate _vimrc file  Forget
about doing all of those registry edits as the web site suggests.  My pda
seems to ignore them anyways.  Just setup the _vimrc file along with all of
the plugins and macros that you want.  I instaled the Vim 6.3 desktop
version and then copied everything over to the appropriate directories on my
storage card. The only module that produced errors for me was the vim.vim
one.  I simply removed it and everything else works ok.  The other problem
that I had was a missing format.vim module.  It is in the root Vim directory
on the desktop rather than in the Syntax sub directory.  I copied it  to the
SYNTAX sub directory on the storage card and everything is cool.

Boy, do I love using Vim on my pda.  I have all of my syntax, the help files
and my environment works ok.  Don't forget to set the rows and column widths
using a set lines = 10 and set tw = 78.




David P. Gil wrote:
 
 Anyone know if any good IDEs for Python on Pocket PC? I installed PythonCE
 but it seems to only work in interactive mode. Does anyone know how to
 active script mode?
 
 Thanks!
 
 David
 
 ___
 PythonCE mailing list
 PythonCE@python.org
 http://mail.python.org/mailman/listinfo/pythonce
 
 

-- 
View this message in context: 
http://www.nabble.com/IDE-for-Python-on-Windows-Pocket-PC--tf2147229.html#a5939793
Sent from the Python - pythonce forum at Nabble.com.

___
PythonCE mailing list
PythonCE@python.org
http://mail.python.org/mailman/listinfo/pythonce


Re: [PythonCE] python editor...

2006-09-10 Thread Bandung

I like Vim.   http://www.rainer-keuchel.de/wince/vim.html Pocket Vim   It
works exceedingly well in Windows mobile 5.0.  In order to get all of the
additional plugins, macros, syntax files, etc, I installed VIm for the
desktop (I used version 6.x) then copied all of those files and sub
directories under the desktop's Vim directory over to my pda's Vim
directory.

I don't like using explorer.vim, so I removed it from the plugin sub
directory.  The only problem I had was with the vim.vim file.  It always
shows an error so I renamed the file (or you can delete it) and everything
works as advertised.

Last thing.  I use to set up all of the registry entries suggested on the
site where you can find pocket Vim but no more.  I set the row and columuns
parameters within a file called vimrc_bandung.vim  For example I use 

:set lines=10, 
:set tw=78
:set columns=60

I also lose the wrap feature, etc.  This file is where I customize my Vim. 
I point to this customization file with an entry in the file _VIMRC

set nocompatible
source $VIMRUNTIME/vimrc_bandung.vim
source $VIMRUNTIME/mswin.vim
source $VIMRUNTIME/menu.vim
source $VIMRUNTIME/syntax/synload.vim
source $VIMRUNTIME/syntax/filetype.vim
behave mswin

So if you know how to use Vim on the desktop, then you are pretty much set
for using it on your pda.



slug_picio wrote:
 
 Hello there, I'm a newbie of PythonCE.
 I've installed PythonCE 2.4.3 for arm on a dell axim x30
 and It works like a charm.
 Can you tell me a good and free editor (just editor not ide) with
 syntax highlight that I can use to create python scripts?
 OS is Windows Mobile 2003 SE.
 Thanks for any answer.
 Picio
 ___
 PythonCE mailing list
 PythonCE@python.org
 http://mail.python.org/mailman/listinfo/pythonce
 
 

-- 
View this message in context: 
http://www.nabble.com/python-editor...-tf2228391.html#a6189609
Sent from the Python - pythonce forum at Nabble.com.

___
PythonCE mailing list
PythonCE@python.org
http://mail.python.org/mailman/listinfo/pythonce


[PythonCE] SQLIte and PySQLite binaries

2006-08-13 Thread Bandung

I have banged my head against the wall trying to comile sqlite3 for windows
mobile 5.0 and just can't get around the compiler errors such as unexpected
end of file errors for virtually every code element in the module.   So I
tried to find binaries that would work on my starcom 6700.  No go.  

I've tried using Giovani's binaries built with compile sqlite 3.2.2 and
pysqlite 2.0.5 and python 2.3.4   but I get the error ddl load fail, the
specified module couuld not be found.  

I have the pysqlite2 directory inside of my DLL directory under Python24 
and within this directory are the files dbapi2.pyd and __init__.py and
_sqlite.pyd )  His sqlite.dll binary I placed  in boh the pysqlite2
directory, the DLL directory and the lib directory underneath python24 - all
in a desperate attempt for this error to go away.)  Here is the site where
his binaries are located and his compiling instructions.

http://area51.sns.it/users/giovanni/python/ Giovani's binaries 

I even tried the sqlite dll version from the ado.net project which seems to
say that this binary will work on all platforms, with or without dot net.  I
replaced Giovani's sqlite.dll with this dll (appropriately renamed to
sqlite3.dll).  Here is the url reference to this binary

   http://sqlite.phxsoftware.com/ ado.net 

I know jack aboout MS compilers (I'm using the free Visual Studio 2005
Standard beta package) so that explains much of my problems.  Yet I can't
even get sqlite3 to compile for windows using the compiling inastructions on
the sqlite site.  
http://www.sqlite.org/cvstrac/wiki/wiki?p=HowToCompileWithVsNet How to
compile with ms visual studio dot net 

(I get 1 error saying that it can't find sqlite3.h even though that piece of
code is in the module and identified in the project.)

Does anyone have pysqlite and sqlite binaries that will work on windows
mobile 5?  If not, does anyone feel up to the task of working through
getting the sources to compile for this platform?


-- 
View this message in context: 
http://www.nabble.com/SQLIte-and-PySQLite-binaries-tf2100511.html#a5788963
Sent from the Python - pythonce forum at Nabble.com.

___
PythonCE mailing list
PythonCE@python.org
http://mail.python.org/mailman/listinfo/pythonce


Re: [PythonCE] Tk/Tcl Widgets

2006-05-18 Thread Bandung

This is a nice find.  I agree with you that it certainly shows what's
possible.  Alas, but I have given my heart to Pythoning and I can't bear to
learn another language.  

I have waded into this Tkintering thingy because of the lack of an up to
date wxPython capability for the poacketpc.  I would probably consider
learning wx before embarking on tcl.  

But boy, is it tempting!!!  If I'm still being frustrrated with my existing
pocketpc development tools three months from now, then its off to tcling I
go.
--
View this message in context: 
http://www.nabble.com/Tk-Tcl-Widgets-t1646602.html#a4461524
Sent from the Python - pythonce forum at Nabble.com.

___
PythonCE mailing list
PythonCE@python.org
http://mail.python.org/mailman/listinfo/pythonce


Re: [PythonCE] Can't Get My Import Module Command to Work Properly

2006-05-17 Thread Bandung

The *.pth is the easiest solution to the problem of being able to run a
script within a given directory.  Mark, your solution also works wrt to
appending the needed directory.  In fact it is the same as mine.  Only
difference is the name of the file and the fact that I don't use an os
import line.

The problem I was having related to the following command line within my
paths.py file 

from calctaxes import *  

This wasn't working.  It turns out that the reason it didn't work was
because I typed 

import paths

What I should have typed was

from paths  import *

Now when I use function within calctaxes, they work.  That is, I can type
the following

 tx = calc(10,5)

Before I would get an error.  calc does not exist.

--
View this message in context: 
http://www.nabble.com/Can%27t-Get-My-Import-Module-Command-to-Work-Properly-t1631521.html#a4429981
Sent from the Python - pythonce forum at Nabble.com.

___
PythonCE mailing list
PythonCE@python.org
http://mail.python.org/mailman/listinfo/pythonce


Re: [PythonCE] raw_input for pythonce ver 2.4.3 gives EOF Error

2006-05-17 Thread Bandung

Thank you for this input.  I suppose python ce also doesn't support the
launching of scripts with the

python myscript.py -i %1

 for the same reason.  I tried creating a file extension *.pyi that called
the above command in order to circumvent the lack of a console.  I get a
Null : Null  error.

These limitations prevent me from running a script in such a way as use the
interpreter to debug the script, check variable values, etc.

Even if I execute a script via the idlece utility, the resulting pythonce
interpreter that pops up only shows output.  I can't get it to accept inputs
so that I can debug things.

Looks like I have to use my destop tools in order to get things debugged. 
Is this your experience too?
--
View this message in context: 
http://www.nabble.com/raw_input-for-pythonce-ver-2.4.3-gives-EOF-Error-t1614478.html#a4431634
Sent from the Python - pythonce forum at Nabble.com.

___
PythonCE mailing list
PythonCE@python.org
http://mail.python.org/mailman/listinfo/pythonce


[PythonCE] Can't Get My Import Module Command to Work Properly

2006-05-16 Thread Bandung

Using the PythonCE interactive window, I am trying to shortcut having to type
in a sys.path.append() command every time I want to run a python script that
is not in the standard path.  So I created a module called paths.py with
several sys.path.append commands in it.

When I import this module into the interpreter, the interpreter appears to
accept it with no errors.  However, I can't run any python scripts that are
within the new paths that my append() commands define.

If I fire up a python shell interpretor and type these two commands - the
sys.path.append() command and then type another command line like ... from
new_module import * this works.  But if I put them in a module called
paths and import that module into my interpreter session, it doesn't work. 
Why?

(1. This doesn't work)
import paths

The paths.py file is sitting in the Python24\Lib  directory and contains the
following,
---
#paths.py
# append this path to system path
import sys
sys.path.append(\My Documents\Personal)
from calctaxes import *
No such module calctaxes error results.
--

The use of any functions within calctaxes fails even though the file
calctaxes.py sits in the directory \My Documents\Personal

(2. But this works if I type the following into the interpreter...

import sys
sys.path.append(\My Documents\Personal)
from calctaxes import *


Then all of my functions within calctaxes work from the interpreter.
--
View this message in context: 
http://www.nabble.com/Can%27t-Get-My-Import-Module-Command-to-Work-Properly-t1631521.html#a4419614
Sent from the Python - pythonce forum at Nabble.com.

___
PythonCE mailing list
PythonCE@python.org
http://mail.python.org/mailman/listinfo/pythonce


[PythonCE] raw_input for pythonce ver 2.4.3 gives EOF Error

2006-05-13 Thread Bandung
I seemed have gotten idlece working along with Tkinter and python works well
except for a few problems.  The one that I would like to find a work around to
is with the input() and raw_input() commands.  Both return an EOFError When
reading a line

the line of code is 

def main()
x = raw_input()

___
PythonCE mailing list
PythonCE@python.org
http://mail.python.org/mailman/listinfo/pythonce