Re: [PythonCE] tk/tcl

2007-01-10 Thread John Aherne
Bandung wrote:
> I don't know paint from whatever when it comes to how folks compile things
> for windoze machines.  I have always suspected that some of the wince issues
> are due to hard wired path statements at install time.  But before we can
> point our fingers at this issue, lets look at a few other things.
>
> (1) First:  Are you trying to install and run a separate tcl/tk apart from
> the version that ships with Python?  If you are, then there are directory
> logistic issues to be resolved.  if you have some tcl scripts that you are
> trying to run separate and apart from python, then I can walk you through my
> directory setup if you wish.  BUt for now, I am assuming that this is not
> what you want to do.
>
> (2) Second: Are you simply trying to get Tkinter working within your
> Python25 installation?  If so, then there should be no issue wrt path names. 
> I seem to recall running my Pythonce just fine from the device's memory.
>
> - First make sure that you have Celib, tk8.4.dll and tcl8.4.dll in your
> windows directory. 
> - Soft reset is your friend.  Whenever you start moving files around, you
> can just about bet that you are due for some crazy Tkinter happenings.  Do
> this first.  
> - Then list your python25 directory structure.  It should be according to
> the standard python25 install.
>
> For example
>
> /Program files/Python25
>  - list their names...
>
> /Program files/Python25/Lib
>  - list their names
>
> /Program files/Python25/dll
>  - list their names
>
>
>   
Thanks for the reply.

I have done a standard python2.5 install.

I got the tkinter.zip from

http://prdownloads.sourceforge.net/pythonce/Tkinter-Files.zip

I got this link from the pyeditce site. It is Tcl 8.4.3

I have put the 3 dlls into my windows directory as per instructions from 
pyeditce.

I have also gone back through the past 15 months emails to find out what 
everyone was doing but I just can't see where the tk and library folders 
are meant to go.

As I said I moved them around based on the sys.path but the only thing I 
got going was init.tcl.


My sys.path looks as follows:

\\Program Files\\Python25\python25.zip
\\Program Files\\Python25\python25.zip\\lib-tk
\\Program Files\\Python25\\DLLS
\\Program Files\\Python25\\lib
\\Program Files\Python25

The Tk zip file I have looks like this:

\Windows\ -- has the dll files in it. I move these to the windows folder
\tcl8.4.3\library
\tcl8.4.3\tk8.4

I think the problem is where I place the last two and whether I need to 
make some config change so that python or tcl can find its various elements.

All the emails I looked at seemed to be vague about this. I assume 
because it was too obvious to mention. But this is the bit that has me 
stumped.

If you can let me know how you set this up I would much appreciate it.

Thanks

John Aherne



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


Re: [PythonCE] tk/tcl

2007-01-10 Thread Bandung

You don't need that Tkinter download nor the tcl/tk download.  The Python25
cab has everything needed to run its own version of Tkinter.  You are mixing
versions of Python.  The instructions that you were following were for an
older version of python, version 2.4.3, I think.  You need to "lose" all of
those files.  You are confusing your python25 install.

Python 25 should have come with its own version of the three files (not
directories but files) that go in the Windows directory.  CELIB is essential
and the two dll's called tcl84.dll and tk84.dll  Do not create directories
and sub directories under windows and put stuff in them.  These three files
belong in \\Windows.

As I was previously mentioning, unless you deliberately want a stand alone
tcl installation, you don't need to be tinkering with strange directory
structures like 

\tcl8.4.3\library
\tcl8.4.3\tk8.4 

(1) Remove all of your python25 stuff and those 8.4.3 tkinter files as well
as those old tcl84.dll and tk84.dll files and that windows sub directory
stuff,
(2)  re-install python25 and only if the installation fails to place celib,
tcl84.dll and tk84.dll in the \\Windows directory, will I  attempt to find
out "what happened", get you those files and upload them to you.
(3) do a soft reboot.  Again, Don't use old tcl84 and tk84 files!.  

When the python interpreter starts up, type in 

import Tkinter
root = Tkinter.Tk()
and then tell me what happens...




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



-- 
View this message in context: 
http://www.nabble.com/tk-tcl-tf2944684.html#a8258612
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] Accessing serial port with PythonCE 2.5

2007-01-10 Thread Stefan Johansson
You can find a link to ceserial in the archives:
http://mail.python.org/pipermail/pythonce/2006-September/001589.html
I have used it successfully on my Dell Axim.

Stefan

- Original Message 
From: David Goncalves <[EMAIL PROTECTED]>
To: Luke Dunstan <[EMAIL PROTECTED]>
Cc: pythonce@python.org
Sent: Monday, January 8, 2007 4:08:58 PM
Subject: Re: [PythonCE] Accessing serial port with PythonCE 2.5

Hi,

> Well there is no "serial" module included with PythonCE, but Python on 
> my PC doesn't have such a module either. I haven't done it myself on 
> PythonCE but I think the best way would be to use ctypes to access the 
> Win32 serial communications APIs. I have written some code to do this on 
> the PC, so I have attached it.

Thanks for your code ;) I'll try it and give feedback.

I've seen about people usin "ceserial" that seems to be a port of
PySerial on WinCE. But no way to find it somewhere on the net :(
___
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

2007-01-10 Thread johnaherne
Thanks for the clarification.

As you said I cleaned up the pda and reinstalled pythonce2.5 using the .exe.

I checked the windows folder and there were no celib.dll,tcl84.dll and tk84.dll 
present.

I did a search for them and found nothing.

So when I tried to import Tkinter it came back and said runtime error could not 
find CeLib.DLL.

I did try to put back the dll from that download I did of tkinter.zip but that 
produced other errors. So I deleted them and went back to the clean setup.

I am hoping you can point me to the right place to get the files.

Thanks for taking the time.


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


Re: [PythonCE] tk/tcl

2007-01-10 Thread Bandung

Here are  my latest files: celib2.13 , then  tcl84 and tk84 dll's 

http://www.nabble.com/file/5568/celib.dll celib.dll 
http://www.nabble.com/file/5566/tcl84.dll tcl84.dll 
http://www.nabble.com/file/5567/tk84.dll tk84.dll 




johnaherne wrote:
> 
> Thanks for the clarification.
> 
> As you said I cleaned up the pda and reinstalled pythonce2.5 using the
> .exe.
> 
> I checked the windows folder and there were no celib.dll,tcl84.dll and
> tk84.dll present.
> 
> I did a search for them and found nothing.
> 
> So when I tried to import Tkinter it came back and said runtime error
> could not find CeLib.DLL.
> 
> I did try to put back the dll from that download I did of tkinter.zip but
> that produced other errors. So I deleted them and went back to the clean
> setup.
> 
> I am hoping you can point me to the right place to get the files.
> 
> Thanks for taking the time.
> 
> 
> 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#a8266098
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] tk/tcl

2007-01-10 Thread John Aherne
Bandung wrote:
> Here are  my latest files: celib2.13 , then  tcl84 and tk84 dll's 
>
> http://www.nabble.com/file/5568/celib.dll celib.dll 
> http://www.nabble.com/file/5566/tcl84.dll tcl84.dll 
> http://www.nabble.com/file/5567/tk84.dll tk84.dll 
>
>
>
>   

Thanks for the links.

I put them all in \Windows.

import Tkinter works

I got the WM5 message about permission for unsigned tcl and tk programs 
wanting to run. So I know it found them.

root = Tkinter.Tk() gave me an error as follows:--

Tk_init error: invalid command name "tcl_findLibrary"
Traceback (most recent call last):
File 
"c:\dev1\release\PythonCE-2.5-20061219\Python-2.5-wince\Lib\lib-tk\Tkinter.py", 
line 1636, in __init__
TclError: invalid command name "tcl_findLibrary"

Looking at the line it seems to be about creating a screen.

Thanks for any info.

Regards

John Aherne


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


Re: [PythonCE] tk/tcl

2007-01-10 Thread Bandung

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.




John Aherne wrote:
> 
> Bandung wrote:
>> Here are  my latest files: celib2.13 , then  tcl84 and tk84 dll's 
>>
>> http://www.nabble.com/file/5568/celib.dll celib.dll 
>> http://www.nabble.com/file/5566/tcl84.dll tcl84.dll 
>> http://www.nabble.com/file/5567/tk84.dll tk84.dll 
>>
>>
>>
>>   
> 
> Thanks for the links.
> 
> I put them all in \Windows.
> 
> import Tkinter works
> 
> I got the WM5 message about permission for unsigned tcl and tk programs 
> wanting to run. So I know it found them.
> 
> root = Tkinter.Tk() gave me an error as follows:--
> 
> Tk_init error: invalid command name "tcl_findLibrary"
> Traceback (most recent call last):
> File 
> "c:\dev1\release\PythonCE-2.5-20061219\Python-2.5-wince\Lib\lib-tk\Tkinter.py",
>  
> line 1636, in __init__
> TclError: invalid command name "tcl_findLibrary"
> 
> Looking at the line it seems to be about creating a screen.
> 
> Thanks for any info.
> 
> 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#a8267592
Sent from the Python - pythonce mailing list archive at Nabble.com.

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