Re: asynchronous comunication, wxPython and threads.

2005-06-22 Thread Zunbeltz Izaola
On Wed, 22 Jun 2005 09:28:31 -0400, Peter Hansen wrote: > Almost certainly it is. It would be simplest to set up a worker thread > once, when the GUI thread begins, and simply send requests to it via a > Queue. It can create the socket, connect to the server, communicate, > close it down, an

Re: asynchronous comunication, wxPython and threads.

2005-06-22 Thread Zunbeltz Izaola
On Tue, 21 Jun 2005 11:07:35 -0400, Peter Hansen wrote: > > Please clarify: what does this mean? "Sending a socket" is not a usual > way to describe TCP communications. Do you mean your program _opens_ a > socket (like a phone connection) and _sends_ some data, then waits for > data to be re

Re: asynchronous comunication, wxPython and threads.

2005-06-21 Thread Zunbeltz Izaola
On Tue, 21 Jun 2005 15:30:41 +0100, Toby Dickenson wrote: > On Tuesday 21 June 2005 14:22, Zunbeltz Izaola wrote: > > > I guess you are accessing the socket from both your GUI thread and > communications thread. Dont do that. An action in the GUI thread should > signal

asynchronous comunication, wxPython and threads.

2005-06-21 Thread Zunbeltz Izaola
l arrive in the correct order (one after each sended socket)? Thanks for your help Zunbeltz Izaola -- http://mail.python.org/mailman/listinfo/python-list

asyncore and GUI (wxPython)

2005-06-13 Thread Zunbeltz Izaola
Hi, I have the followin situation. 1) I've a machine controled by a computer programn that can comunicate with TCP/IP ("server")to recive the request of other program to knwo what the machine should do. 2) The other program ("client") has a GUI (with wxPython), recives data from the machine an

Re: avl tree

2005-06-01 Thread Zunbeltz Izaola
On Tue, 31 May 2005 22:40:19 +0200, Berthold Höllmann wrote: > You can grab it from > > > Thanks i will play with it. But i have realize that what i need was exactly a binary tree. I haven't used tree yet and i don't know if i can use the

Re: avl tree

2005-05-31 Thread Zunbeltz Izaola
On Mon, 30 May 2005 21:13:57 +0200, Berthold Höllmann wrote: > > I'm afraid you won't be happy with the code. It's very old and likely > won't compile. We have an inhouse version of this module which > compiles and run on Sparc solaris (32 Bit) and linux x86 with Python > up to 2.4. I fixed some

avl tree

2005-05-30 Thread Zunbeltz Izaola
Hi, I'm trying to install avl module from http://www.nightmare.com/squirl/python-ext/avl and i had the following instruction to install Building: Unix: First, cd $(AVL_LIB), then 'make libavl.a' Then copy AVLmodule.c into your Modules directory. add a few lines like this to your Python/Modules

Re: stop a thread safetely

2005-05-13 Thread Zunbeltz Izaola
On Fri, 13 May 2005 09:10:13 -0400, Peter Hansen wrote: > > How did you intend to stop the thread in a manner which might be unsafe? > (Hint, unless you're doing something unusual, you can't.) > I have a threaded object (Mythread). It checks if want_thread variable is True to return. The proble

stop a thread safetely

2005-05-13 Thread Zunbeltz Izaola
Hi, I have a wxPython application that call makes a thread (with threading module). In some moment i've to stop the thread but i need to finish a funtion in the thread before it can stop. How can i achive this? Thanks in advance Zunbletz -- http://mail.python.org/mailman/listinfo/python-list

Re: save an opengl canvas (wxPython)

2004-12-15 Thread Zunbeltz Izaola
r the moment png or jpeg is ok, but maybe in the future i'll like to save the image as postscript to use it with LaTeX font and so on. I've se the gl2ps library and the last version is 21 September 2004. Can you send me the SWIG file? I don't know much about swig and it would be easier to

save an opengl canvas (wxPython)

2004-12-13 Thread Zunbeltz Izaola
Hi, I've a drawing made in an OpenGL canvas. I want to save it to a file (preferibly PostScript format). Somebody knows how to do it? TIA Zunbeltz -- Zunbeltz Izaola Azkona| wmbizazz at lg dot ehu dotes Materia Kondentsatuaren Fisika Saila | Zientzia eta Tekno