[PythonCE] tk/tcl

2007-01-09 Thread John Aherne
I have a feeling that the tk/tcl install expects to find the python25 
install on the storage card.

Is that right.

I installed with the exe and activesync and took the default install in 
memory since I don't have a card for this device.

At the python prompt I can do:

from Tkinter import *  ##this works
root=Tk()   ## this fails with message below.

The error message I get after moving bits of tk around so it could find 
init.tcl is:--

Tk_init error:invalid command name tcl_findlibrary

File 
c:\dev1\release\PythonCE-2.5-20061219-2.5-wince\Lib\lib-tk\Tkinter.py 
line 1636 in __init__ TCL error invalid command name 'tcl_findlibrary'

Is there anywhere else I can put the files so it will work without 
getting a storage card.

Thanks for any info.

John Aherne

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


[PythonCE] thx a lot !! problem solved!

2007-01-09 Thread vakosel

thx you are very kind!
kostas

Bandung wrote:
> 
> It sounds like you are almost there.  Yes you need these three files in
> your windows directory
> 
> TK84.DLL TCL84.DLL and celib.dll
> 
> Make sure that you have the latest version possible that you can find for
> CELIB.  I don't remember what mine is.  I seem to think tht I found a
> CELIB ver 2.13   Google is your friend here.  
> 
> If you have the latest version of Python2.5, then the other missing files
> will be in their proper place.  Any time I received the missing TK DLL
> message, all I had to do is a soft reset and my python begins working
> again.  It occasionally happens that my Tkinter gets disoriented and the
> soft reset always brings it back.
> 
> I have the environment key set in the HKLM as per Rainer's instructions on
> his website but this should not affext your python installation.  Soft
> reset and you will be in business.
> 
> I do have a separate installation for tcl/tk so that I can run tcl
> programs separate and apart from my python installation.  I'm prestty sure
> that you don't need this in order for your python instal to work.  I have
> a separate tcl directory under 
> 
> \Storage card\Program files\lib\tcl
> \Storage card\Program files\Python25
> 
> Within the tcl directory is a lib directory and under that I have a
> tcl8.4, a tk8.4, a bwidget, a itcl3.3, a tkTable2.8 directory, etc.
> 
> You don't need these if you do not intend to use bwidgets or want a stand
> alone tcl implementation.
> 
> So just soft reset and you will be in business.
> 
> 
> vakosel wrote:
>> 
>> Thanks for your reply even though didnt help much because as i said i
>> worked it a lot before posting
>> Actually there is a newer version including the _tkinter.pyd and sqlite3
>> (2.520061219) so these missing files you are mentioned in your hyperlink 
>> already exist in my installation.
>>  i have to say that i run windows mobile 5 . Has anything to do with the
>> environnmet variables? do i need any other files like TK84.DLL TCL84.DLL
>> and celib.dll?  i put them in \windows aand the rest of files on the
>> directory
>> \\storage card\program files\python25 but.. no luck.. 
>> the message i get is cant find celib.dll / when i put it in \windows
>> folder then the exception is 
>> cant fine TK DLL
>> ..
>> i am really trying my best but...
>> 
>> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/python-2.5-tkinter-install-help%21%21-tf2932110.html#a8249818
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-09 Thread Bandung

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


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

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