Re: Problem with embedded python

2005-04-26 Thread Tom Cocagne
From looking at your example, it looks like you're making the problem FAR more difficult than it needs to be. The main thing to keep in mind is that Python threads do not correspond to operating system threads. In an application using a single OS-level thread, you can use as many Python threads a

Re: Embedding threaded Python

2005-04-13 Thread Tom Cocagne
You only need to call PyEval_InitThreads() for multithreaded C-code. The Python threads operate on a different principle. Tom Ricardo wrote: > If I embed Python in a C app and the Python code is threaded, but the C > code isn't, do I need to call PyEval_InitThreads() ? - or do you only need >

Re: PyGTK and pyexe

2005-03-21 Thread Tom Cocagne
I remember removing the locales and all of the documentation. Beyond that I can't remember. If your app falls under the common case of running on machines with ample disk space, I wouldn't worry too much about the size. WinZip does a pretty good job of shrinking my distribution file to a managabl

Re: PyGTK and pyexe

2005-03-19 Thread Tom Cocagne
H. Well, the way I did it, if I remember correctly (the files are at work), was to run the line "python setup.py py2exe --force --excludes gtk, gobject,pango" and then copied the entire GTK directory into the distribution directory. Just copying the DLLs doesn't suffice since there are other f

Re: PyGTK and pyexe

2005-03-18 Thread Tom Cocagne
I used the instructions in the PyGTK FAQ and managed to get it working. Take a look at: http://www.async.com.br/faq/pygtk/index.py?req=show&file=faq21.005.htp Cheers, Rakis Viktor wrote: > Did anybody managed to "pack", a program that uses pygtk with pyexe? > > The best result I got was: