Re: [PythonCE] Comtypes installation problem...

2008-06-26 Thread Michael Foord

David Goncalves wrote:

Hi,

I'm trying to install comtypes on Python 2.5 (2007-10 release).
I've copied the comtypes folder to Program files\Python25\Lib.


That is part of the Win32 extensions for Python which run on the desktop 
(with a different CPU and different APIs to your WinCE device).


You would have to recompile especially for WinCE, which would be 
'difficult'.


You are much better off using ctypes for PythonCE, which comes with the 
latest PythonCE 2.5 I believe.


Michael Foord



When i do a import comtypes to check if everything is ok, i
get the following message :

function SafeArrayCreateVectorEx not found
with a lot of debug informations...

Does anyone already got the same message ?

BTW : I've tested on many machines and on a fresh WM5 with the Device 
Emulator

  but the result is the same...


Regards.


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



--
http://www.ironpythoninaction.com/
http://www.voidspace.org.uk/
http://www.trypython.org/
http://www.ironpython.info/
http://www.resolverhacks.net/
http://www.theotherdelia.co.uk/

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


Re: [PythonCE] Comtypes installation problem...

2008-06-26 Thread Michael Foord

Thomas Heller wrote:

Michael Foord schrieb:
  

David Goncalves wrote:


Hi,

I'm trying to install comtypes on Python 2.5 (2007-10 release).
I've copied the comtypes folder to Program files\Python25\Lib.
  
That is part of the Win32 extensions for Python which run on the desktop 
(with a different CPU and different APIs to your WinCE device).



No, comtypes is a pure Python COM package, based on ctypes.  No need to
compile anything.
  

Oops - my mistake. Sorry.

Michael


Thomas

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



--
http://www.ironpythoninaction.com/
http://www.voidspace.org.uk/
http://www.trypython.org/
http://www.ironpython.info/
http://www.resolverhacks.net/
http://.theotherdelia.co.uk/

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


Re: [PythonCE] Building under Visual Studio 2005 for Devices

2007-03-05 Thread Michael Foord
Christopher Fairbairn wrote:
 Hi,

 I am keen to start contributing to the Windows CE/Windows Mobile port of 
 Python. I 
 have a lot of commerical development experience in this environment.

 I would like to understand the build process for Python in a lot more detail 
 than I 
 currently do. I thought an ideal way to do this would be to have a goal of 
 making 
 PythonCE compilable under Visual Studio 2005.

 Is anyone able to give me any starting tips on how I might approch this? 
 Should I 
 look at modifying the SCONS scripts to be able to detect and make use of 
 Visual 
 Studio 2005 instead of EVC, or should I go the route used by the PCBuild and 
 PCBuild8 directories (i.e. desktop versions) where (I assume) someone has 
 manually 
 created a bunch of suitable project and solution files?

   
PythonCE is a port of the standard CPython project.

As it happens there is thread going on *right now* on the Python-dev 
mailing list on what it takes to make CPython compilable with VS 2005.

The same techniques would have to be applied to the PythonCE project 
which is essentially just a patched version of vanilla CPython.

Worth browsing the Python-dev mailing archives for this month...

Fuzzyman
http://www.voidspace.org.uk/python/index.shtml


 Thanks.
 Christopher Fairbairn


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

   

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


Re: [PythonCE] Windows Mobile 5

2006-10-23 Thread Michael Foord
Michael Foord wrote:
 Hello all,

 Does PythonCE Microsoft Mobile System 5.0 Devices ?
   
*oops* my apologies.

Does PythonCE run on Microsoft Mobile System 5.0 Devices ?

Thanks

Fuzzyman



 All the best,

 Fuzzyman
 http://www.voidspace.org.uk


   



-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.408 / Virus Database: 268.13.9/490 - Release Date: 20/10/2006

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


Re: [PythonCE] Tk/Tcl Widgets

2006-05-19 Thread Michael Foord
Bandung wrote:
 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.  
   
Actually, my point is that seeing as this is done with Tk - it ought to 
be possible with PythonCE !

:-)

(Tkinter is just a bridge into Tk/Tcl)

It's a shame IronPython can't be made to work with the compact .NET 
framework. :-(


All the best,


Fuzzyman
http://www.voidspace.org.uk/python/shareware.shtml

 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

   

___
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-18 Thread Michael Foord
Bandung wrote:
 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?
   
Afraid so. :-)

However: building an interactive shell, like IDLE, using Pocket Tkinter 
(in fact based on the IDLE code I guess) is almost certainly possible...

Fuzzyman
http://www.voidspace.org.uk/python/shareware.shtml

 --
 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 mailing list
PythonCE@python.org
http://mail.python.org/mailman/listinfo/pythonce


[PythonCE] Tk/Tcl Widgets

2006-05-18 Thread Michael Foord
Hello all,

I wondered if you'd seen this :

http://wiki.tcl.tk/8442

It's a GUI built with Tk/Tcl for the PocketPC. It certainly shows what 
is possible. :-)

Fuzzyman
http://www.voidspace.org.uk/python/shareware.shtml
___
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-14 Thread Michael Foord
Bandung wrote:
 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()

   
Hello,

I'm afraid the underlying console for PocketPC doesn't support these 
functions. An older version of PythonCE used to have a workaround, but 
it looks like the code is lost in the mists of time. :-(

Fuzzyman
http://www.voidspace.org.uk/python/shareware.shtml

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

   

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


Re: [PythonCE] Tkinter PhotoImage, no such file or directory

2006-04-30 Thread Michael Foord
Patrick Kramer wrote:
 quote who=Luke Dunstan
   
 You can tell Python using os.chdir(), but that will not necessarily have any
 effect on Tkinter because the operating system has no concept of a current
 directory, so it depends on whether the image file is opened in the Python
 code or the C code.

 Luke

 

 So there is no way for python to return the current directory it is in?

 say something like:

 dir = return_dir()

 image_loc = dir + //BtnGluco.gif

 Or:

 image_loc = dir + //assets//img//BtnGluco.gif #This is how I would like to 
 orgnize it
   
I think the situation is (perhaps Luke can correct me if I'm wrong) :

The underlying Windows CE platform has no concept of a current directory.
PythonCE *simulates* a current directory on the python level

This means that calls that use only Python code will work as normal - 
except the current directory will always start in a fixed location 
('//Temp' I think).
Calls to use files from C code will not have access to this information.

So you can experiment with the image_loc and see if it works using the 
current directory or not, but it may not do.

To get the current directory you use the normal functions provided by 
the ``os`` and ``os.path`` module :

cur_dir = os.getcwd()
print cur_dir
os.chdir(//assets)
print os.getcwd()

image_path = os.path.join(os.getcwd(), img//BtnGluco.gif)

You can also test whether you are running on windows CE or not with either :

sys.platform or sys.getwindowsversion()

They should return different things on windows CE and normal windows. 
That means you can make your code behave appropriately depending on 
which system it is on.

HTH

Fuzzyman
http://www.voidspace.org.uk/python/shareware.shtml


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

   

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


Re: [PythonCE] Python 2.3.5 for Windows CE / ARM (Pocket PC 2003)

2006-01-05 Thread Michael Foord
[EMAIL PROTECTED] wrote:
 Great! Thanks you for your efforts.
 

Ditto - works great for me.

All the best,

Fuzzyman
http://www.voidspace.org.uk/python/index.shtml

 
Send PythonCE mailing list submissions to
  pythonce@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
  [EMAIL PROTECTED]

You can reach the person managing the list at
  [EMAIL PROTECTED]

When replying, please edit your Subject line so it is more specific
than Re: Contents of PythonCE digest...


Today's Topics:

   1. Python 2.3.5 for Windows CE / ARM (Pocket PC 2003) (Luke Dunstan)
   2. Re: [ctypes-users] Python 2.3.5 for Windows CE / ARM(Pocket
  PC 2003) (Brad Clements)


--

Message: 1
Date: Tue, 3 Jan 2006 20:33:52 +0800
From: Luke Dunstan [EMAIL PROTECTED]
Subject: [PythonCE] Python 2.3.5 for Windows CE / ARM (Pocket PC 2003)
To: pythonce@python.org
Cc: [EMAIL PROTECTED]
Message-ID: [EMAIL PROTECTED]
Content-Type: text/plain; format=flowed; charset=iso-8859-1;
  reply-type=original


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?group_id=104228release_id=382495


Luke


--

Message: 2
Date: Tue, 03 Jan 2006 09:55:47 -0500
From: Brad Clements [EMAIL PROTECTED]
Subject: Re: [PythonCE] [ctypes-users] Python 2.3.5 for Windows CE /
  ARM (Pocket PC 2003)
To: pythonce@python.org
Message-ID: [EMAIL PROTECTED]
Content-Type: text/plain; charset=US-ASCII

On 3 Jan 2006 at 20:33, 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?group_id=104228release_i
d=382495


Luke


Thanks Luke for setting up this release.

List folks -- Luke is now an official developer' for the Python CE
project.
Welcome aboard!




--
Brad Clements,[EMAIL PROTECTED](315)268-1000
http://www.murkworks.com
AOL-IM or SKYPE: BKClements




--

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


End of PythonCE Digest, Vol 30, Issue 2
***

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

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


Re: [PythonCE] Editor for WinCE

2005-12-30 Thread Michael Foord
Info4HiDeVis wrote:
 Hey thx for this tip.
 Pocket Notepad is what i have to search. :)
 
 What is your problem with the IDLE? Who can i start the IDLE? Means IDLE
 the Python.exe?

No, there is a specific version of IDLE for for WindowsCE - I've
attached it her (might not make it onto the list, so I've sent a private
email as well).

I *think* the URL pointing to it is archived at :
http://www.traybor.com/PythonCE/

You'll need Tk/Tcl as well - again the URL should be on that page. Make
sure you are running Python 2.3.4 *not* Python 2.2.

All the best,

Fuzzyman
http://www.voidspace.org.uk/python/index.shtml

 
 Michael Foord schrieb:
 
 
Info4HiDeVis wrote:
 


Hello,
i'm searching for a small text-editor for winCE, but i havn't found someone.
Have anybody a tip witch program are good for editing into winCE ?

   


Hmmm.. I use Pocket Notepad. :-)
It doesn't do indentation though.

Pocket IDLE is ok - but I can't get it to share it's clipboard with
windows. It also crashes occasionally. I *think* both these problems are
down to the Tk/Tcl port not IDLE itself - other people don't report the
same problems, but I've tried re-installing and had the smae issues on
two devices.

I'd also welcome suggestions...

All the best,

Fuzzyman
http://www.voidspace.org.uk/python/index.shtml

 


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



   


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


 

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


#IdleCE

vanilla = globals().copy()
import sys
for p in sys.path:
if p[-12:].lower() == python23.zip:
sys.path.append(p + \\lib-tk)
break
import os, time, cPickle
from Tkinter import *
import tkMessageBox
import tkFileDialog
import tkSimpleDialog

import keyword
from string import ascii_letters, digits, punctuation

OS = os.name.lower() #Should be 'ce' on WinCE


class Idle:
The base class for the mini idle.

def __init__(self,root):
This is where the interface is created.

This stuff is mostly straight forward except the wframe and how the 
work spaces are implemented.
The wframe is a container for the current work space.  When the user 
clicks on the editor/clipboard
button the wframe is told to forget about what it's doing and instead 
pack the desired set of widgets.

self.top = None
self.root = root
root.grid_rowconfigure(1, weight=2)
root.grid_columnconfigure(0, weight=2)

frame = Frame(root)
frame.grid(row=0,column=0,sticky=E+W)

wframe = Frame(root) # work frame
wframe.grid(row=1,column=0,sticky=NSEW)

# Editor widget group
self.edit = Frame(wframe)
self.edit.grid_rowconfigure(0, weight=2)
self.edit.grid_columnconfigure(0, weight=2)
self.edit.pack(fill=BOTH, expand=1)

self.editor = SyntaxHighlightingText(self.edit)
self.editor.grid(row=0,column=0,sticky=N+S+E+W)
self.editor.clipper = self.addClip

panbar = Scrollbar(self.edit, orient=HORIZONTAL)
panbar.grid(row=1,column=0,sticky=E+W)

scrollbar = Scrollbar(self.edit)
scrollbar.grid(row=0,column=2,sticky=N+S)

self.editor.configure(xscrollcommand=panbar.set)
self.editor.configure(yscrollcommand=scrollbar.set)

scrollbar.config(command=self.editor.yview)
panbar.config(command=self.editor.xview)

# Clipper widget group
self.clip = Frame(wframe, bd=2, relief=SUNKEN)

scrollbar = Scrollbar(self.clip)
scrollbar.pack(side=RIGHT, fill=Y)

self.clipper = Listbox(self.clip, bd=0, yscrollcommand=scrollbar.set)
self.clipper.pack(fill=BOTH, expand=1)
self.clipper.bind('Double-Button-1', self.changeClip)

scrollbar.config(command=self.clipper.yview)

# Menus
btn = Menubutton(frame,text=File,padx=1,pady=1)
btn.pack(side=LEFT)
submenu = Menu(btn,tearoff=False)
btn[menu] = submenu
submenu.add_command(label=New,command=self.new)
submenu.add_command(label=Open,command=self.open)
submenu.add_command(label=Save,command=self.save)
submenu.add_command(label=Save as,command=self.saveas)
submenu.add_separator()
submenu.add_command(label=Options,command=self.options)
submenu.add_separator()
submenu.add_command(label=Exit,command=self.exit)

btn = Menubutton(frame,text=Edit,padx=1,pady=1)
btn.pack(side=LEFT)
submenu = Menu(btn,tearoff=False)
btn[menu] = submenu
submenu.add_command

Re: [PythonCE] PythonCE on the ARM emulator

2005-12-16 Thread Michael Foord
Thomas Heller wrote:
 Since Luke Dunstan has ported ctypes to windows CE, so I got interested
 in this platform.  I don't have a Windows CE device, but I found the MS
 Device Emulator (1.0, Community Preview):
 
 http://msdn.microsoft.com/mobility/windowsmobile/downloads/emulatorpreview/default.aspx
 
 To get started, I installed the emulator and tried to install the
 current CE binaries on it.  The interactive interpreter works as far as
 I can tell, except that I cannot import any extension modules in it.
 When I try this, 'import _winreg' or 'import socket', Python is
 terminated without any indication what was wrong.
 
 Has anyone with more experience tried to run Python on this 'platform'?
 

I can't download it. :-(

Shame - I'd like to play with it. I also missed any 'announcement' about
ctypes for PythonCE. Sounds good.

Fuzzyman
http://www.voidspace.org.uk/python/index.shtml


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

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


Re: [PythonCE] PythonCE on the ARM emulator

2005-12-16 Thread Michael Foord
Thomas Heller wrote:
 Michael Foord [EMAIL PROTECTED] writes:
 
 
Thomas Heller wrote:

Since Luke Dunstan has ported ctypes to windows CE, so I got interested
in this platform.  I don't have a Windows CE device, but I found the MS
Device Emulator (1.0, Community Preview):

http://msdn.microsoft.com/mobility/windowsmobile/downloads/emulatorpreview/default.aspx

To get started, I installed the emulator and tried to install the
current CE binaries on it.  The interactive interpreter works as far as
I can tell, except that I cannot import any extension modules in it.
When I try this, 'import _winreg' or 'import socket', Python is
terminated without any indication what was wrong.

Has anyone with more experience tried to run Python on this 'platform'?


I can't download it. :-(
 
 
 I had the same problem initially.
 
 First, you need to use InternetExplorer.
 Second, you need to setup a passport account.
 Third, you need to disable any popup blockers, because the page
 does the download via an ActiveX control.
 

That explains why I got a zero sized response when trying to download it
from Mandrake Linux at work. :-)

I'd already negotiated the passport account part.

Thanks

Fuzzyman
http://www.voidspace.org.uk/python/index.shtml
___
PythonCE mailing list
PythonCE@python.org
http://mail.python.org/mailman/listinfo/pythonce


Re: [PythonCE] PocketPC Python 2.3? and Shtoom

2005-10-20 Thread Michael Foord
Mike Klein wrote:
 When might a 2.3 release be available and does 2.2 support Pocket PC 
 audio devices (spkr/mic)??
 
 Shtoom (voip client) is the thought here...it requires 2.3.
 

Python 2.3 is available for PocketPC :
http://fore.validus.com/~kashtan/

No idea if shtoom will work :-)
I personally doubt it...

Fuzzyman
http://www.voidspace.org.uk/python

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

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


Re: [PythonCE] Winhandle problem with tkinter

2005-10-19 Thread Michael Foord
Andrew Booth wrote:
 I’m writing an application using tKinter as the GUI. It seems to work
 OK, but after a while I keep getting the message ‘No more winhandle
 slots’. It seems to be appear immediately before dialogs appear on the
 screen.  I’m careful to destroy the dialogs when I remove them from the
 screen – does destroy() not release the Windows handle? I only see this
 with PythonCE, not with Linux.
 

I don't know the answer to your question - but you may get more help
(but I might be wrong) - on the Pocket TCL mailing list. The problem is
*more* likely to be there than with the Python side.

All the best,

Fuzzyman
http://www.voidspace.org.uk/python

  
 
 ___
 
 Andrew G Booth
 Professor of On-Line Learning
 and Associate Professor of Biochemistry
 Garstang Building
 Faculty of Biological Sciences
 University of Leeds
 Leeds LS2 9JT
 U.K.
 Tel: +44-113-343-3142 Fax: +44-113-343-3167
 email: [EMAIL PROTECTED]
 personal email should be sent to:
[EMAIL PROTECTED]
 ___
 
 Support open source Virtual Learning Environments
 The Bodington System Project http://bodington.org
 ___
 
  
 
 
 
 
 ___
 PythonCE mailing list
 PythonCE@python.org
 http://mail.python.org/mailman/listinfo/pythonce

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


[PythonCE] Jornada 820

2005-08-16 Thread Michael Foord
Hello All,

I've just acquired (and am enjoying using) a Jornada 820. This has 32mb
of ram and 200mhz StrongArm processor (very good for it's day) - but I
believe runs Windows CE 2.11.

Does anyone know which is the latest version of PythonCE to run on it ?

It looks like the binaries at http://sourceforge.net/projects/pythonce
are for WindowsCE 3.0 - and so unlikely to run on the device. I can't
even see a version of 2.2 compiled for CE 2.11 :-(

All the Best,


Fuzzy
http://www.voidspace.org.uk/python

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


Re: [PythonCE] Python 2.3.4 for StrongARM Pocket PC 2003

2005-04-23 Thread Michael Foord
Kim Ollivier wrote:
I have downloaded this and have got some parts working. I can get IDLE to run 
tkinter-test and sometimes my own hello world script.
I am confused about what to expect in Wince compared to Windows. I have trouble getting from IDLE to the shell and back without a long route through the settings/memory/running programs/activate. I cannot see how to get a shell without IDLE.
 

If you're having to use `settings/memory/running programs/activate` to 
swap the active screen, you probably need a utility like 'PocketNav' to 
make it easier.

The IDLE for pocketpc is a bit different from  the 'normal IDLE' - and 
is developed separately from the actual port of python for windows ce.

If you just run `python.exe`, you should get a python shell.

What might be needed is an updated FAQ for beginners with a few screen shots. I 
have seen an old FAQ that has not been updated for a couple of years.
Perhaps I could help write one. Where should it go? Can we have a sticky FAQ 
appearing.
 

What do you mean by 'sticky FAQ' - I've not heard that term before ?
It seems that there is no support for sys.argv[], so how does one add parameters? As an 
exercise I thought it would be fun to port fortune.
Not much success so far.
 

Rats.. I can't help on this at the minute. My memory card broke and I'm 
waiting for the supplier to replace it. I didn't realise that sys.argv 
didn't work - but then I've never tried to use it on my PDA :-)

Best Regards,
Fuzzy
http://www.voidspace.org.uk/python
_
Kim Ollivier  Ollivier  Company
Corax for Cadastral DataPO Box 34 861
 North Shore City
[EMAIL PROTECTED]http://www.ollivier.co.nz 
Office +64 9 418 2220  Fax 09 480 2254
Kim  021 593 769 Jenny   025 593 769

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

 

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


Re: [PythonCE] Qt for Windows now to be LGPL

2005-02-09 Thread Michael Foord
Stewart Midwinter wrote:
Says so here:
http://www.trolltech.com/newsroom/announcements/0192.html
They will release sources, but you have to compile yourself.  So, does
that mean it could be compiled for Windows Mobile?  Would that be a
Good Thing or a Bad Thing?
cheers,
 

Still GPL is better than the commercial only license it was previously 
available as.

Compiling it for windows Mobile will be very challenging . The windows 
implementation will use a lot of system calls - only a subset of those 
calls will be available on windows mobile. The source would need 
modifying to only use resources available under windows mobile.

Regards,
Fuzzy
http://www.voidspace.org.uk/python/index.shtml
___
PythonCE mailing list
PythonCE@python.org
http://mail.python.org/mailman/listinfo/pythonce


Re: [PythonCE] Screen size?

2005-02-04 Thread Michael Foord
Miles Lubin wrote:
Oops :)
I was using the python for HPC-2000 :)
Why isn't the pocketpc version on sourceforge?

I don't know who maintains the sourceforge site.
Michael:
I'm using the input function from
http://mail.python.org/pipermail/pythonce/2004-September/000762.html. 
It's messy, but its good enough for me.

Cool. I'll check it out.
I'm mainly using IDLE on my Pocket PC now :-)
Regards,
Fuzzy
http://www.voidspace.org.uk/python/index.shtml
Miles
http://prdownloads.sourceforge.net/pythonce/python-2.3.4-arm-HPC2000.zip?download 



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


Re: [PythonCE] launch external application from pythonCE

2005-01-14 Thread Michael Foord
Geir Egeland wrote:
Hi,
The error message i get using os.system(cmd) is :
AttributeError: 'module' object has no attribute 'system'
So, this doesn't seem to work...
Doing a help(os) does not show the 'system' command under available 
functions.
Any other suggestions?

Some of the exec* options are available. Try those.
Regards,
Fuzzy
http://www.voidspace.org.uk/python/index.shtml
regards,
geir egeland
Ed Blake wrote:
Also you may need to specify the path to the target application as 
WinCE has
no concept of an environment.

--- Stewart Midwinter [EMAIL PROTECTED] wrote:
 

Darn, I forgot my PDA at home so I can try this out.  My suggestion
would be to see if os.system() is available, and use that. If Pocket
Internet Explorer's file name is iexplore.exe, do something like the
following
#import sys, os
sys.path.append('\\Program Files\\Python\\Lib')
cmd = iexplore.exe http://www.cbc.ca;
os.system(cmd)
Note that your Python app is still running, but unable to do anything
else, while iexplore is running, if you use this approach.  To unlock
the Python app, use a different approach, like execv or popen or its
variants.
Let us know if this works!
cheers
S

On Thu, 13 Jan 2005 10:04:55 +0100, Geir Egeland 
[EMAIL PROTECTED]
wrote:
  

Hi,
How can I launch Internet Explorer from a  python program ?

--
Stewart Midwinter
[EMAIL PROTECTED]
[EMAIL PROTECTED]
___
PythonCE mailing list
PythonCE@python.org
http://mail.python.org/mailman/listinfo/pythonce
  

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

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

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


Re: [PythonCE] Mini IDLE update and response.

2005-01-05 Thread Michael Foord
Hello Ed,
is great - it's the first useful python app. for windows CE that I've 
seen - awesome. MANY MANY thanks for your work.

It's been such a pain coding with pocket notepad !
I've noticed the problem with selection as well - I guess it's a problem 
with the WinCE port of Tk. The best you can do is fix the keybindings to 
the cursor keys, so that selection can be done with the shift-arrow 
keys. Maybe even implement ctrl-something-or-other to select a block at 
a time !

Anyway - I have a bit of a wish list for IdleCE. *Mainly* related to key 
bindings, but not entirely. If you could bear these in mind, I would be 
personally very grateful.

In order of importance :
max 1 edit and file menu open at a time
key bindings to ctrl-c, ctr-x, ctrl-a, ctrl-v, ctrl-s (copy, cut, select 
all, paste, save)
Also shift-arrow keys for selection

tab for indenting selected area
ctrl-[ and ctrl-] for indenting/unindenting selected area
tab is four spaces rather than tab
(and/or a spaces to tabs/tabs to spaces option)
comment in/comment out areas - with key bindings
As I said though... I already use IdleCE and am grateful for your work. 
Do you want this put online somewhere ? Contact me off-list if you do.

Regards,
Fuzzyman
http://www.voidspace.org.uk/python/index.shtml

Ed Blake wrote:
I've managed to get popup menus that work.  Highlight some text, tap the
selection and a menu will appear.  It is equivalent to the edit menu/window
but seems to work better for cut/copy.  I have a problem with this though on
my own device (HP Ipaq, WinCE 2003).  When I try to highlight text the
selection flickers and changes, like the selection is being made over and
over.  If anyone can figure out what causes this I would be interested in
hearing about it.
RE the license:  I think the example code I based most of this app on was
released GPL so unless I can track down the example again and verify its
license...  I suppose if I verify that the example was other than GPL I
should use the python license as that is the license used on IDLE.

#IdleCE
import sys
sys.path.append('\\Program Files\\Python\\lib\\Python23.zip\\lib-tk')
import sys
import os
import re
from Tkinter import *
import tkMessageBox
import tkFileDialog
import keyword
from string import ascii_letters, digits, punctuation
OS = os.name.lower() #Should be 'ce' on WinCE
class idle:
   The base class for the mini idle.
   def __init__(self,root):
   self.root = root
   root.grid_rowconfigure(0, weight=1)
   root.grid_columnconfigure(0, weight=1)
   
   frame = Frame(root)
   frame.grid(row=0,column=0,sticky=N+W)
   
   btn = Button(frame,text=file,command=self.file_dialog)
   btn.pack(side=LEFT)
   
   btn = Button(frame,text=edit,command=self.edit_dialog)
   btn.pack(side=LEFT)
   
   btn = Button(frame,text=about,command=self.about_dialog)
   btn.pack(side=LEFT)
   
   self.editor = SyntaxHighlightingText(root)
   self.editor.grid(row=1,column=0,columnspan=2,sticky=N+S)
   
   panbar = Scrollbar(root,orient=HORIZONTAL)
   panbar.grid(row=2,column=0,columnspan=2,sticky=E+W)
   
   scrollbar = Scrollbar(root)
   scrollbar.grid(row=1,column=2,sticky=N+S)
   
   self.editor.configure(xscrollcommand=panbar.set)
   self.editor.configure(yscrollcommand=scrollbar.set)
   
   scrollbar.config(command=self.editor.yview)
   panbar.config(command=self.editor.xview)

   self.root.protocol(WM_DELETE_WINDOW, self.exit)
   def file_dialog(self):
   Used instead of a menu since menus don't work on WinCE.
   top = Toplevel(padx=20)
   top.title(file)
   top.resizable(0,0)
   top.focus_set()
   btn_task = Button(top, text=New,command=self.new)
   btn_task.pack(fill=X)
   btn_task = Button(top, text=Open,command=self.open)
   btn_task.pack(fill=X)
   btn_task = Button(top, text=Save,command=self.save)
   btn_task.pack(fill=X)
   
   btn_task = Button(top, text=Save As,command=self.saveas)
   btn_task.pack(fill=X)

   btn = Button(top, text=Exit, command=self.exit)
   btn.pack(fill=X)
   def edit_dialog(self):
   These buttons all work on the desktop, but don't seem to work right
on WinCE.  Luckly copy and paste are accessable via mouse clicks.
   top = Toplevel(padx=20)
   top.title(edit)
   top.resizable(0,0)
   top.focus_set()
   btn_undo = Button(top, text=Undo,command=self.editor.edit_undo)
   btn_undo.pack(fill=X)
   btn_redo = Button(top, text=Redo,command=self.editor.edit_redo)
   btn_redo.pack(fill=X)
   btn_task = Button(top, text=Cut,command=self.editor.cut)
   btn_task.pack(fill=X)
   btn_task = Button(top, text=Copy,command=self.editor.copy)
   btn_task.pack(fill=X)
   btn_task = Button(top, text=Paste,command=self.editor.paste)
   btn_task.pack(fill=X)
   btn 

Re: [PythonCE] gadfly or SnakeSQL on PythonCE?

2004-12-31 Thread Michael Foord
I thought gadfly was C based ? Have you compiled it for WindowsCE ?
SnakeSQL is pure python and *could* work... what errors are you getting ?
Regards,
Fuzzy
Roman Bischoff wrote:
Hi
I'm new to Python and new to PythonCE.
However, it runs on my iPaq now.
I try to run Gadfly or SnakeSQL on it.
I went for gadfly and snakesql because they are written in Python.
So I thought they should run without much problems.
Until now I couldn't get them running.
I get errors for SnakeSql that I don't get on the WinXP machine.
Does somebody know whether gadfly and SnakeSql should run on PythonCE?
Regards and happy new year
-Roman-
 

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


Re: [PythonCE] wxPython on CE

2004-12-17 Thread Michael Foord
Congratulations Brian.
It looks like it *might* soon be possible to develop real applications 
for the PocketPC using Python. A database and a GUI.

Regards,
Fuzzy
http://www.voidspace.org.uk/atlantibots/pythonutils.html
Brian Retford wrote:
I nearly killed myself doing so, but I have a largely functional port 
of wxPython to CE. It is missing a few useful things (wxHTML, XRC, 
etc) but by and large it works well. It required a slightly modified 
version of the pythonce port that everyone seems to be using (namely I 
removed the spinning wait cursor, because wx is always doing 
something). I also made a pythonw that doesn't launch an interpreter. 
I can release binaries and source for any of these things. The CE port 
of wxPython is not presently in any state to contribute back to 
wxpython.org, sadly. I'd really like to get it there because I'd like 
both python on ce and wxpython to be supported by these projects 
formally. Let me know if there is interest and I'll get the files out 
there.

Brian Retford
Senior Developer
www.cococorp.com
___
PythonCE mailing list
[EMAIL PROTECTED]
http://mail.python.org/mailman/listinfo/pythonce

___
PythonCE mailing list
[EMAIL PROTECTED]
http://mail.python.org/mailman/listinfo/pythonce