[PythonCE] thanks
thanks for the emails and the info, i dont know all that much at this point about all this, but if you wanted to upload what you said i would download it, but you dont have to if you dont want to. with your setup you can do all aspects of programming and such on your pda right? you dont require a desktop, although some of the features that arnt working on pda could be helpful, you can still do it on the pda right? as i am wanting to be able to use only my pocket pc. i dont have a hardware keybaord, and would rather not get one, but ive been trying and looking at some of the SIP's available, but not knowing enough of how python works and how it works within VimCE im not sure what all i would want, i was leaning toward using TenGo Thumb which is a 6 button keybaord if you didnt knwo that works nicely, ive also tried a full screen keyboard, but it hasnt worked as nicely as i would like, i get alot of typos with it, as with teh TenGo type i dont get typos, but i do have to know how to spell the word, so it may take longer to figure out how to type the word sometimes :), but with the full screen keyboard i would type R or something and it owuld do 5 and similiar, i should play with it some more, but it doesnt work as easily as i thought it would and i may find for normal typing the TenGo style better, and i could always add code commands to its library i think... also i don tknow if Vim keeps formatting from desktop? this is off topic if thats okay, and i will download Vim at sometime im sure, but i have a website with .php files, and the only program ive found on the pocket pc that keeps the formatting is TextMaker, but i wont pay 50 dollars for that alone, the editor in total commander, and lgthtml and pocket notepad dont keep the formatting, although i think though i could be wrong once formatted on or within the pocket pc it might keep it.. i am not sure but i think that the editors show a square each place there was an enter key hit to make the paraphraph spacing, however none of these editors have a find and replace command, though they all seem to have find, im thinking Vim would have find and replace as well which would then make formatting it much easier... thanks - jason ___ PythonCE mailing list PythonCE@python.org http://mail.python.org/mailman/listinfo/pythonce
Re: [PythonCE] thanks
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
[PythonCE] psyqlite and tkinter
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
Re: [PythonCE] thanks again
(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
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